mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
fix(anthropic/chat/transformation.py): fix anthropic header (#6365)
This commit is contained in:
parent
fb523b79e9
commit
c8d248c824
1 changed files with 0 additions and 3 deletions
|
|
@ -274,9 +274,6 @@ class AnthropicConfig:
|
|||
## Handle Tool Calling
|
||||
if "tools" in optional_params:
|
||||
_is_function_call = True
|
||||
if "anthropic-beta" not in headers:
|
||||
# default to v1 of "anthropic-beta"
|
||||
headers["anthropic-beta"] = "tools-2024-05-16"
|
||||
anthropic_tools = []
|
||||
for tool in optional_params["tools"]:
|
||||
if "input_schema" in tool: # assume in anthropic format
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue