Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_weather(city: str) -> str:
agent = Agent(
name="Haiku agent",
instructions="Always respond in haiku form",
model="o3-mini",
model="gpt-5-nano",
tools=[get_weather],
)
```
Expand Down Expand Up @@ -163,7 +163,7 @@ By using the `clone()` method on an agent, you can duplicate an Agent, and optio
pirate_agent = Agent(
name="Pirate",
instructions="Write like a pirate",
model="o3-mini",
model="gpt-4.1",
)

robot_agent = pirate_agent.clone(
Expand Down
8 changes: 4 additions & 4 deletions docs/voice/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ spanish_agent = Agent(
instructions=prompt_with_handoff_instructions(
"You're speaking to a human, so be polite and concise. Speak in Spanish.",
),
model="gpt-4o-mini",
model="gpt-4.1",
)

agent = Agent(
name="Assistant",
instructions=prompt_with_handoff_instructions(
"You're speaking to a human, so be polite and concise. If the user speaks in Spanish, handoff to the spanish agent.",
),
model="gpt-4o-mini",
model="gpt-4.1",
handoffs=[spanish_agent],
tools=[get_weather],
)
Expand Down Expand Up @@ -156,15 +156,15 @@ spanish_agent = Agent(
instructions=prompt_with_handoff_instructions(
"You're speaking to a human, so be polite and concise. Speak in Spanish.",
),
model="gpt-4o-mini",
model="gpt-4.1",
)

agent = Agent(
name="Assistant",
instructions=prompt_with_handoff_instructions(
"You're speaking to a human, so be polite and concise. If the user speaks in Spanish, handoff to the spanish agent.",
),
model="gpt-4o-mini",
model="gpt-4.1",
handoffs=[spanish_agent],
tools=[get_weather],
)
Expand Down
4 changes: 2 additions & 2 deletions examples/voice/streamed/my_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ def get_weather(city: str) -> str:
instructions=prompt_with_handoff_instructions(
"You're speaking to a human, so be polite and concise. Speak in Spanish.",
),
model="gpt-4o-mini",
model="gpt-4.1",
)

agent = Agent(
name="Assistant",
instructions=prompt_with_handoff_instructions(
"You're speaking to a human, so be polite and concise. If the user speaks in Spanish, handoff to the spanish agent.",
),
model="gpt-4o-mini",
model="gpt-4.1",
handoffs=[spanish_agent],
tools=[get_weather],
)
Expand Down