[Misc] Remove the duplicate code (#28111)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey 2025-11-06 10:07:47 +08:00 committed by GitHub
parent f948ab6945
commit 07d614511f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1000,11 +1000,6 @@ class OpenAIServingResponses(OpenAIServing):
# to add the tool call request to prev_outputs so that the
# parse_response_input can find the tool call request when
# parsing the tool call output.
if (
isinstance(response_msg, dict)
and response_msg.get("type") == "function_call"
):
response_msg = ResponseFunctionToolCall.model_validate(response_msg)
if isinstance(response_msg, ResponseFunctionToolCall):
prev_outputs.append(response_msg)
return messages