mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Merge 1cfe030ec6 into 3fadcd7155
This commit is contained in:
commit
a06534145d
2 changed files with 2 additions and 1 deletions
|
|
@ -599,7 +599,7 @@ class AmazonConverseConfig(BaseConfig):
|
|||
message=f"Bedrock doesn't support tool_choice={tool_choice}. To drop it from the call, set `litellm.drop_params = True.",
|
||||
status_code=400,
|
||||
)
|
||||
elif tool_choice == "required":
|
||||
elif tool_choice == "required" or tool_choice == "any":
|
||||
return ToolChoiceValuesBlock(any={})
|
||||
elif tool_choice == "auto":
|
||||
return ToolChoiceValuesBlock(auto={})
|
||||
|
|
|
|||
|
|
@ -4622,6 +4622,7 @@ def test_parallel_tool_calls_emits_typed_auto_tool_choice(parallel_tool_calls, e
|
|||
[
|
||||
("auto", {"auto": {}}),
|
||||
("required", {"any": {}}),
|
||||
("any", {"any": {}}),
|
||||
({"type": "function", "function": {"name": "get_current_weather"}}, {"tool": {"name": "get_current_weather"}}),
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue