Update litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Or Yaacov 2026-04-01 16:37:57 +03:00 committed by GitHub
parent b0a37e59e7
commit b6f9ee31e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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