From cac82de4f4f28a560177910f2d842b8810bc3d22 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 12 Nov 2024 15:01:03 -0800 Subject: [PATCH] fix test_litellm_anthropic_prompt_caching_tools --- litellm/llms/anthropic/chat/transformation.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.py index 47264b8f0e8..10f1fbab1cf 100644 --- a/litellm/llms/anthropic/chat/transformation.py +++ b/litellm/llms/anthropic/chat/transformation.py @@ -164,11 +164,7 @@ class AnthropicConfig: tool["function"].get("parameters", None) or {} ) _tool_input_schema: AnthropicInputSchema = AnthropicInputSchema( - type=_input_function_parameters.get("type", "object"), - properties=_input_function_parameters.get("properties", {}), - additionalProperties=_input_function_parameters.get( - "additionalProperties", True - ), + **_input_function_parameters ) _tool = AnthropicMessagesTool( name=tool["function"]["name"],