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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ requires-python = ">=3.9"
license = "MIT"
authors = [{ name = "OpenAI", email = "support@openai.com" }]
dependencies = [
"openai>=2.7.1,<3",
"openai>=2.8.0,<3",
"pydantic>=2.12.3, <3",
"griffe>=1.5.6, <2",
"typing-extensions>=4.12.2, <5",
Expand Down
4 changes: 2 additions & 2 deletions src/agents/models/openai_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def convert_tool_choice(
elif tool_choice == "web_search":
return {
# TODO: revist the type: ignore comment when ToolChoice is updated in the future
"type": "web_search", # type: ignore [typeddict-item]
"type": "web_search", # type: ignore[misc, return-value]
}
elif tool_choice == "web_search_preview":
return {
Expand All @@ -398,7 +398,7 @@ def convert_tool_choice(
elif tool_choice == "mcp":
# Note that this is still here for backwards compatibility,
# but migrating to MCPToolChoice is recommended.
return {"type": "mcp"} # type: ignore [typeddict-item]
return {"type": "mcp"} # type: ignore[misc, return-value]
else:
return {
"type": "function",
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.