mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-19 17:45:25 +00:00
fmt
This commit is contained in:
parent
c2dedd45e7
commit
e8c4787430
@ -538,7 +538,7 @@ def convert_to_openai_tool(
|
|||||||
any dict with "type" in "file_search", "function", "computer_use_preview",
|
any dict with "type" in "file_search", "function", "computer_use_preview",
|
||||||
"web_search_preview".
|
"web_search_preview".
|
||||||
"""
|
"""
|
||||||
if isinstance(tool, dict) :
|
if isinstance(tool, dict):
|
||||||
if tool.get("type") in ("function", "file_search", "computer_use_preview"):
|
if tool.get("type") in ("function", "file_search", "computer_use_preview"):
|
||||||
return tool
|
return tool
|
||||||
# As of 03.12.25 can be "web_search_preview" or "web_search_preview_2025_03_11"
|
# As of 03.12.25 can be "web_search_preview" or "web_search_preview_2025_03_11"
|
||||||
|
Loading…
Reference in New Issue
Block a user