Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2ee7c8

Browse files
authored
Update models in docs (#1810)
1 parentac64c02 commitc2ee7c8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

‎docs/agents.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_weather(city: str) -> str:
2222
agent= Agent(
2323
name="Haiku agent",
2424
instructions="Always respond in haiku form",
25-
model="o3-mini",
25+
model="gpt-5-nano",
2626
tools=[get_weather],
2727
)
2828
```
@@ -163,7 +163,7 @@ By using the `clone()` method on an agent, you can duplicate an Agent, and optio
163163
pirate_agent= Agent(
164164
name="Pirate",
165165
instructions="Write like a pirate",
166-
model="o3-mini",
166+
model="gpt-4.1",
167167
)
168168

169169
robot_agent= pirate_agent.clone(

‎docs/voice/quickstart.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ spanish_agent = Agent(
7272
instructions=prompt_with_handoff_instructions(
7373
"You're speaking to a human, so be polite and concise. Speak in Spanish.",
7474
),
75-
model="gpt-4o-mini",
75+
model="gpt-4.1",
7676
)
7777

7878
agent= Agent(
7979
name="Assistant",
8080
instructions=prompt_with_handoff_instructions(
8181
"You're speaking to a human, so be polite and concise. If the user speaks in Spanish, handoff to the spanish agent.",
8282
),
83-
model="gpt-4o-mini",
83+
model="gpt-4.1",
8484
handoffs=[spanish_agent],
8585
tools=[get_weather],
8686
)
@@ -156,15 +156,15 @@ spanish_agent = Agent(
156156
instructions=prompt_with_handoff_instructions(
157157
"You're speaking to a human, so be polite and concise. Speak in Spanish.",
158158
),
159-
model="gpt-4o-mini",
159+
model="gpt-4.1",
160160
)
161161

162162
agent= Agent(
163163
name="Assistant",
164164
instructions=prompt_with_handoff_instructions(
165165
"You're speaking to a human, so be polite and concise. If the user speaks in Spanish, handoff to the spanish agent.",
166166
),
167-
model="gpt-4o-mini",
167+
model="gpt-4.1",
168168
handoffs=[spanish_agent],
169169
tools=[get_weather],
170170
)

‎examples/voice/streamed/my_workflow.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ def get_weather(city: str) -> str:
2121
instructions=prompt_with_handoff_instructions(
2222
"You're speaking to a human, so be polite and concise. Speak in Spanish.",
2323
),
24-
model="gpt-4o-mini",
24+
model="gpt-4.1",
2525
)
2626

2727
agent=Agent(
2828
name="Assistant",
2929
instructions=prompt_with_handoff_instructions(
3030
"You're speaking to a human, so be polite and concise. If the user speaks in Spanish, handoff to the spanish agent.",
3131
),
32-
model="gpt-4o-mini",
32+
model="gpt-4.1",
3333
handoffs=[spanish_agent],
3434
tools=[get_weather],
3535
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp