[Bugfix] Support repsonse_format + tool_choice=auto (#56086)
Signed-off-by: Artem Perevedentsev <aperevedents@nvidia.com> Co-authored-by: Yufeng He <40085740+he-yufeng@users.noreply.github.com> Co-authored-by: pablopupo <145598901+pablopupo@users.noreply.github.com> Co-authored-by: hubunt <150658615+hubunt@users.noreply.github.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Yufeng He
pablopupo
hubunt
Claude Sonnet 5
parent
0376f81530
commit
2b9b55c7f1
@@ -1196,6 +1196,21 @@ class TestAdjustRequest:
|
||||
"TOOL_CALL_2_FUNCTION_FIRST",
|
||||
],
|
||||
),
|
||||
(
|
||||
{
|
||||
"tool_choice": "auto",
|
||||
"strict_tools": True,
|
||||
"response_format_type": "json_schema",
|
||||
},
|
||||
[
|
||||
"COMMENTARY",
|
||||
"TOOL_CALL_1_CHANNEL_FIRST",
|
||||
"TOOL_CALL_1_FUNCTION_FIRST",
|
||||
"TOOL_CALL_2_CHANNEL_FIRST",
|
||||
"TOOL_CALL_2_FUNCTION_FIRST",
|
||||
"FINAL_JSON_SCHEMA",
|
||||
],
|
||||
),
|
||||
(
|
||||
{"response_format_type": "json_schema"},
|
||||
["FINAL_JSON_SCHEMA"],
|
||||
@@ -1281,6 +1296,7 @@ class TestAdjustRequest:
|
||||
"tool_auto_strict",
|
||||
"tool_required",
|
||||
"tool_named",
|
||||
"pr56086_tool_auto_strict_response_format_json_schema",
|
||||
"response_format_json_schema",
|
||||
"response_format_json_object",
|
||||
"structured_outputs_json",
|
||||
|
||||
Reference in New Issue
Block a user