Skip to content

Commit 418bd94

Browse files
committed
feat: update GPT model from gpt-4o-mini to gpt-5-nano
1 parent dbfbd82 commit 418bd94

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Each sub-package has a `register(app)` function called from `listeners/__init__.
6565
|--------|-----------------|-------------------|-------------|
6666
| Agent file | `agent/casey.py` | `agent/support_agent.py` | `agent/casey.py` |
6767
| App type | `AsyncApp` (fully async) | `App` (sync) | `App` (sync) |
68-
| Agent definition | `ClaudeSDKClient` with `ClaudeAgentOptions` | `Agent[CaseyDeps](model="gpt-4o-mini")` | `Agent(deps_type=CaseyDeps)` |
68+
| Agent definition | `ClaudeSDKClient` with `ClaudeAgentOptions` | `Agent[CaseyDeps](model="gpt-5-nano")` | `Agent(deps_type=CaseyDeps)` |
6969
| Model config | Managed by SDK (Claude models) | Set directly on agent constructor | Passed at runtime via `run_sync(model=DEFAULT_MODEL)` |
7070
| Tool definition | `@tool` decorated functions via MCP server | `@function_tool` decorated functions | Plain async functions |
7171
| Tool context param | `args` dict (no context param) | `RunContextWrapper[CaseyDeps]` | `RunContext[CaseyDeps]` |

openai-agents-sdk/.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ See the root `../.claude/CLAUDE.md` for monorepo-wide architecture, commands, an
66

77
## OpenAI Agents SDK Specifics
88

9-
**Agent (`agent/support_agent.py`)** is an `Agent[CaseyDeps]` with the model set directly on the agent (`model="gpt-4o-mini"`). Tools are `@function_tool`-decorated async functions, each in its own file under `agent/tools/`. Execution uses `Runner.run_sync(casey_agent, input=..., context=deps)`.
9+
**Agent (`agent/support_agent.py`)** is an `Agent[CaseyDeps]` with the model set directly on the agent (`model="gpt-5-nano"`). Tools are `@function_tool`-decorated async functions, each in its own file under `agent/tools/`. Execution uses `Runner.run_sync(casey_agent, input=..., context=deps)`.
1010

1111
**Conversation history** is stored as a generic `list` and must be manually combined with new user input before passing to `Runner.run_sync()`: `input_items = history + [{"role": "user", "content": text}]`. After execution, `result.to_input_list()` is stored back.
1212

openai-agents-sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pip install -r requirements.txt
108108

109109
### OpenAI Setup
110110

111-
This app uses OpenAI's `gpt-4o-mini` model through the OpenAI Agents SDK.
111+
This app uses OpenAI's `gpt-5-nano` model through the OpenAI Agents SDK.
112112

113113
1. Create an API key from your [OpenAI dashboard](https://platform.openai.com/api-keys).
114114
1. Rename `.env.sample` to `.env`.

openai-agents-sdk/agent/support_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@
5555
check_system_status,
5656
lookup_user_permissions,
5757
],
58-
model="gpt-4o-mini",
58+
model="gpt-5-nano",
5959
)

pydantic-ai/.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ See the root `../.claude/CLAUDE.md` for monorepo-wide architecture, commands, an
66

77
## Pydantic AI Specifics
88

9-
**Agent (`agent/casey.py`)** is a Pydantic AI `Agent` with `deps_type=CaseyDeps`. The model is **not** set on the agent (to avoid import-time OpenAI client creation); instead `DEFAULT_MODEL` (`openai:gpt-4o-mini`) is passed at each `run_sync()` call site. Tools are passed via the `tools=[]` constructor parameter (not decorators) so each tool lives in its own file under `agent/tools/`.
9+
**Agent (`agent/casey.py`)** is a Pydantic AI `Agent` with `deps_type=CaseyDeps`. The model is **not** set on the agent (to avoid import-time OpenAI client creation); instead `DEFAULT_MODEL` (`openai:gpt-5-nano`) is passed at each `run_sync()` call site. Tools are passed via the `tools=[]` constructor parameter (not decorators) so each tool lives in its own file under `agent/tools/`.
1010

1111
**Conversation history** stores `list[ModelMessage]` from Pydantic AI and is passed directly as `message_history=` to `run_sync()`.
1212

pydantic-ai/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pip install -r requirements.txt
108108

109109
### OpenAI Setup
110110

111-
This app uses OpenAI's `gpt-4o-mini` model through Pydantic AI.
111+
This app uses OpenAI's `gpt-5-nano` model through Pydantic AI.
112112

113113
1. Create an API key from your [OpenAI dashboard](https://platform.openai.com/api-keys).
114114
1. Rename `.env.sample` to `.env`.

pydantic-ai/agent/casey.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
- If unsure about a user's issue, ask clarifying questions before taking action
4646
"""
4747

48-
DEFAULT_MODEL = "openai:gpt-4o-mini"
48+
DEFAULT_MODEL = "openai:gpt-5-nano"
4949

5050
casey_agent = Agent(
5151
deps_type=CaseyDeps,

0 commit comments

Comments
 (0)