Skip to content

Commit b062d67

Browse files
committed
fix
1 parent ca8ea9a commit b062d67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/agents/models/openai_responses.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ def convert_tool_choice(
335335
return {
336336
"type": "file_search",
337337
}
338+
elif tool_choice == "web_search":
339+
return {
340+
"type": "web_search",
341+
}
338342
elif tool_choice == "web_search_preview":
339343
return {
340344
"type": "web_search_preview",

0 commit comments

Comments
 (0)