mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix _map_tool_helper
This commit is contained in:
parent
6c950a545c
commit
9b76c0de9f
1 changed files with 5 additions and 0 deletions
|
|
@ -199,6 +199,11 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig):
|
|||
},
|
||||
)
|
||||
input_schema: AnthropicInputSchema = AnthropicInputSchema(**_input_schema)
|
||||
|
||||
_allowed_properties = set(AnthropicInputSchema.__annotations__.keys())
|
||||
input_schema_filtered = {k: v for k, v in _input_schema.items() if k in _allowed_properties}
|
||||
input_schema: AnthropicInputSchema = AnthropicInputSchema(**input_schema_filtered)
|
||||
|
||||
_tool = AnthropicMessagesTool(
|
||||
name=tool["function"]["name"],
|
||||
input_schema=input_schema,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue