Unverified Commit 07d61451 authored by Chauncey's avatar Chauncey Committed by GitHub
Browse files

[Misc] Remove the duplicate code (#28111)


Signed-off-by: default avatarchaunceyjiang <chaunceyjiang@gmail.com>
parent f948ab69
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment