[BugFix] raise error when request.stream=True. (#350)

Signed-off-by: yinpe <11810305@mail.sustech.edu.cn>
This commit is contained in:
Peiqi Yin authored and GitHub committed 2025-12-23 08:52:18 +08:00
1 parent ef827022b8
commit 0e878a92d2
1 file changed
+1 -10
+1 -10
View File
@@ -263,16 +263,7 @@ class OmniOpenAIServingChat(OpenAIServingChat):
# Streaming response
if request.stream:
return self.chat_completion_stream_generator(
request,
result_generator,
request_id,
model_name,
conversation,
tokenizer,
request_metadata,
enable_force_include_usage=self.enable_force_include_usage,
)
raise RuntimeError("Not support streaming output now.")
try:
return await self.chat_completion_full_generator(