mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
Add anthropic programatic tool calling support for responses api
This commit is contained in:
parent
f0928e1423
commit
aa6d0056d3
1 changed files with 6 additions and 0 deletions
|
|
@ -716,6 +716,12 @@ class LiteLLMCompletionResponsesConfig:
|
|||
)
|
||||
if tool.get("cache_control"):
|
||||
chat_completion_tool["cache_control"] = tool.get("cache_control")
|
||||
if tool.get("defer_loading"):
|
||||
chat_completion_tool["defer_loading"] = tool.get("defer_loading")
|
||||
if tool.get("allowed_callers"):
|
||||
chat_completion_tool["allowed_callers"] = tool.get("allowed_callers")
|
||||
if tool.get("input_examples"):
|
||||
chat_completion_tool["input_examples"] = tool.get("input_examples")
|
||||
chat_completion_tools.append(
|
||||
chat_completion_tool
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue