mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix linting on _map_tool_helper
This commit is contained in:
parent
9b76c0de9f
commit
ca666dc20e
1 changed files with 3 additions and 4 deletions
|
|
@ -198,15 +198,14 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig):
|
|||
"properties": {},
|
||||
},
|
||||
)
|
||||
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)
|
||||
anthropic_input_schema: AnthropicInputSchema = AnthropicInputSchema(**input_schema_filtered)
|
||||
|
||||
_tool = AnthropicMessagesTool(
|
||||
name=tool["function"]["name"],
|
||||
input_schema=input_schema,
|
||||
input_schema=anthropic_input_schema,
|
||||
)
|
||||
|
||||
_description = tool["function"].get("description")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue