[Bugfix][Responses] Add tests for Chat Completions Responses API Render Parity (#50334)

Signed-off-by: Yifan Zong <yzong@redhat.com>
Co-authored-by: Ben Browning <56071+bbrowning@users.noreply.github.com>
This commit is contained in:
yzong-rh
2026-07-31 15:45:40 -04:00
committed by GitHub
co-authored by Ben Browning
parent 4fdd3e0b74
commit e8b358b4c0
8 changed files with 521 additions and 43 deletions
+7 -1
View File
@@ -610,7 +610,13 @@ class OpenAIServingResponses(GenerateBaseServing):
request: ResponsesRequest,
prev_response: ResponsesResponse | None,
):
tool_dicts = construct_tool_dicts(request.tools, request.tool_choice)
tool_dicts = construct_tool_dicts(
request.tools,
request.tool_choice,
exclude_tools_when_tool_choice_none=(
self.online_renderer.exclude_tools_when_tool_choice_none
),
)
# Construct the input messages.
messages = construct_input_messages(
request_instructions=request.instructions,