mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 08:04:58 +08:00
[Misc] Remove the duplicate code (#28111)
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
parent
f948ab6945
commit
07d614511f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user