[gpt-oss] use vLLM instead of openai types for streaming (#25186)
Signed-off-by: Andrew Xia <axia@meta.com> Signed-off-by: Andrew Xia <axia@fb.com> Co-authored-by: Andrew Xia <axia@fb.com>
This commit is contained in:
@@ -22,16 +22,16 @@ from openai.types.responses import (
|
||||
ResponseCodeInterpreterCallCompletedEvent,
|
||||
ResponseCodeInterpreterCallInProgressEvent,
|
||||
ResponseCodeInterpreterCallInterpretingEvent,
|
||||
ResponseCodeInterpreterToolCallParam, ResponseCompletedEvent,
|
||||
ResponseContentPartAddedEvent, ResponseContentPartDoneEvent,
|
||||
ResponseCreatedEvent, ResponseFunctionToolCall, ResponseFunctionWebSearch,
|
||||
ResponseInProgressEvent, ResponseOutputItem, ResponseOutputItemAddedEvent,
|
||||
ResponseOutputItemDoneEvent, ResponseOutputMessage, ResponseOutputText,
|
||||
ResponseReasoningItem, ResponseReasoningTextDeltaEvent,
|
||||
ResponseReasoningTextDoneEvent, ResponseStatus, ResponseTextDeltaEvent,
|
||||
ResponseTextDoneEvent, ResponseWebSearchCallCompletedEvent,
|
||||
ResponseWebSearchCallInProgressEvent, ResponseWebSearchCallSearchingEvent,
|
||||
response_function_web_search, response_text_delta_event)
|
||||
ResponseCodeInterpreterToolCallParam, ResponseContentPartAddedEvent,
|
||||
ResponseContentPartDoneEvent, ResponseFunctionToolCall,
|
||||
ResponseFunctionWebSearch, ResponseOutputItem,
|
||||
ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent,
|
||||
ResponseOutputMessage, ResponseOutputText, ResponseReasoningItem,
|
||||
ResponseReasoningTextDeltaEvent, ResponseReasoningTextDoneEvent,
|
||||
ResponseStatus, ResponseTextDeltaEvent, ResponseTextDoneEvent,
|
||||
ResponseWebSearchCallCompletedEvent, ResponseWebSearchCallInProgressEvent,
|
||||
ResponseWebSearchCallSearchingEvent, response_function_web_search,
|
||||
response_text_delta_event)
|
||||
from openai.types.responses.response_output_text import (Logprob,
|
||||
LogprobTopLogprob)
|
||||
# yapf: enable
|
||||
@@ -58,6 +58,9 @@ from vllm.entrypoints.openai.protocol import (DeltaMessage, ErrorResponse,
|
||||
InputTokensDetails,
|
||||
OutputTokensDetails,
|
||||
RequestResponseMetadata,
|
||||
ResponseCompletedEvent,
|
||||
ResponseCreatedEvent,
|
||||
ResponseInProgressEvent,
|
||||
ResponseReasoningPartAddedEvent,
|
||||
ResponseReasoningPartDoneEvent,
|
||||
ResponsesRequest,
|
||||
|
||||
Reference in New Issue
Block a user