From ca666dc20e8a4a8c59be5274e2f058967dbd2a3c Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 24 Jul 2025 16:11:36 -0700 Subject: [PATCH] fix linting on _map_tool_helper --- litellm/llms/anthropic/chat/transformation.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.py index c74a8b14706..6631dd567c9 100644 --- a/litellm/llms/anthropic/chat/transformation.py +++ b/litellm/llms/anthropic/chat/transformation.py @@ -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")