From 186a6792432aabb361d49c06b01f6c2f8a1ffadc 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 47264b8f0..10f1fbab1 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"],