mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Add anthropic specific tools
This commit is contained in:
parent
a108c95d1a
commit
64b12e0225
1 changed files with 2 additions and 0 deletions
|
|
@ -697,6 +697,8 @@ class LiteLLMCompletionResponsesConfig:
|
|||
chat_completion_tools.append(tool)
|
||||
elif tool.get("type") == "computer_use":
|
||||
chat_completion_tools.append(tool)
|
||||
elif tool.get("name") == "tool_search_tool_regex" or tool.get("name") == "tool_search_tool_bm25" or tool.get("type") == "code_execution_20250825":
|
||||
chat_completion_tools.append(tool)
|
||||
else:
|
||||
typed_tool = cast(FunctionToolParam, tool)
|
||||
# Ensure parameters has "type": "object" as required by providers like Anthropic
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue