Skip to content

Commit 2b3bfb8

Browse files
authored
Upgrade openai-python to 2.8.0 for GPT 5.1 (#2091)
1 parent a776d80 commit 2b3bfb8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.9"
77
license = "MIT"
88
authors = [{ name = "OpenAI", email = "support@openai.com" }]
99
dependencies = [
10-
"openai>=2.7.1,<3",
10+
"openai>=2.8.0,<3",
1111
"pydantic>=2.12.3, <3",
1212
"griffe>=1.5.6, <2",
1313
"typing-extensions>=4.12.2, <5",

src/agents/models/openai_responses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def convert_tool_choice(
377377
elif tool_choice == "web_search":
378378
return {
379379
# TODO: revist the type: ignore comment when ToolChoice is updated in the future
380-
"type": "web_search", # type: ignore [typeddict-item]
380+
"type": "web_search", # type: ignore[misc, return-value]
381381
}
382382
elif tool_choice == "web_search_preview":
383383
return {
@@ -398,7 +398,7 @@ def convert_tool_choice(
398398
elif tool_choice == "mcp":
399399
# Note that this is still here for backwards compatibility,
400400
# but migrating to MCPToolChoice is recommended.
401-
return {"type": "mcp"} # type: ignore [typeddict-item]
401+
return {"type": "mcp"} # type: ignore[misc, return-value]
402402
else:
403403
return {
404404
"type": "function",

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)