mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
pass cache_control in tool call
This commit is contained in:
parent
96f9655a02
commit
54102a660d
1 changed files with 2 additions and 0 deletions
|
|
@ -975,6 +975,8 @@ class AnthropicChatCompletion(BaseLLM):
|
|||
else: # assume openai tool call
|
||||
new_tool = tool["function"]
|
||||
new_tool["input_schema"] = new_tool.pop("parameters") # rename key
|
||||
if "cache_control" in tool:
|
||||
new_tool["cache_control"] = tool["cache_control"]
|
||||
anthropic_tools.append(new_tool)
|
||||
|
||||
optional_params["tools"] = anthropic_tools
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue