mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Merge c0ce1ebd1c into 49affa7c01
This commit is contained in:
commit
75ccaf9b33
1 changed files with 3 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue