diff --git a/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py b/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py index d5ff48e22d6..197c1e811e4 100644 --- a/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py +++ b/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py @@ -815,7 +815,7 @@ class LiteLLMAnthropicMessagesAdapter: name=truncated_name, ) if "input_schema" in tool: - function_chunk["parameters"] = copy.copy(tool["input_schema"]) # type: ignore + function_chunk["parameters"] = copy.deepcopy(tool["input_schema"]) # type: ignore if "description" in tool: function_chunk["description"] = tool["description"] # type: ignore