mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(anthropic/chat/transformation.py): correctly update response_format to tool call transformation
Fixes https://github.com/BerriAI/litellm/issues/9411
This commit is contained in:
parent
b2852676f6
commit
b3b93dbd14
3 changed files with 74 additions and 4 deletions
|
@ -387,7 +387,7 @@ class AnthropicConfig(BaseConfig):
|
|||
_input_schema["additionalProperties"] = True
|
||||
_input_schema["properties"] = {}
|
||||
else:
|
||||
_input_schema["properties"] = {"values": json_schema}
|
||||
_input_schema.update(json_schema)
|
||||
|
||||
_tool = AnthropicMessagesTool(
|
||||
name=RESPONSE_FORMAT_TOOL_NAME, input_schema=_input_schema
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue