Skip to content

Commit b4de865

Browse files
committed
feat: update GPT model from gpt-5-nano to gpt-4.1-mini
1 parent eae518f commit b4de865

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-5-nano")` | `Agent(deps_type=CaseyDeps)` |
68+
| Agent definition | `ClaudeSDKClient` with `ClaudeAgentOptions` | `Agent[CaseyDeps](model="gpt-4.1-mini")` | `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-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)`.
9+
**Agent (`agent/support_agent.py`)** is an `Agent[CaseyDeps]` with the model set directly on the agent (`model="gpt-4.1-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)`.
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
@@ -107,7 +107,7 @@ pip install -r requirements.txt
107107

108108
### OpenAI Setup
109109

110-
This app uses OpenAI's `gpt-5-nano` model through the OpenAI Agents SDK.
110+
This app uses OpenAI's `gpt-4.1-mini` model through the OpenAI Agents SDK.
111111

112112
1. Create an API key from your [OpenAI dashboard](https://platform.openai.com/api-keys).
113113
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
@@ -72,5 +72,5 @@
7272
check_system_status,
7373
lookup_user_permissions,
7474
],
75-
model="gpt-5-nano",
75+
model="gpt-4.1-mini",
7676
)

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-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/`.
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-4.1-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/`.
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
@@ -107,7 +107,7 @@ pip install -r requirements.txt
107107

108108
### OpenAI Setup
109109

110-
This app uses OpenAI's `gpt-5-nano` model through Pydantic AI.
110+
This app uses OpenAI's `gpt-4.1-mini` model through Pydantic AI.
111111

112112
1. Create an API key from your [OpenAI dashboard](https://platform.openai.com/api-keys).
113113
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
@@ -62,7 +62,7 @@
6262
- If unsure about a user's issue, ask clarifying questions before taking action
6363
"""
6464

65-
DEFAULT_MODEL = "openai:gpt-5-nano"
65+
DEFAULT_MODEL = "openai:gpt-4.1-mini"
6666

6767
casey_agent = Agent(
6868
deps_type=CaseyDeps,

0 commit comments

Comments
 (0)