This commit is contained in:
Diwakar Ray Yadav 2026-08-27 18:48:54 -05:00 • committed by GitHub
commit 75ccaf9b33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -733,7 +733,9 @@ class LiteLLMAnthropicMessagesAdapter:
name=truncated_name,
)
if "input_schema" in tool:
function_chunk["parameters"] = tool["input_schema"]
# Deep-copy so extra kwargs merged below (see #34510) never mutate
# the caller's original `input_schema` dict.
function_chunk["parameters"] = copy.deepcopy(tool["input_schema"])
if "description" in tool:
function_chunk["description"] = tool["description"]
if "strict" in tool: