Unverified Commit 73a99cc2 authored by Aleksandr Samarin's avatar Aleksandr Samarin Committed by GitHub
Browse files

[Model] Fixed stream generator for gpt-oss + spec-decoding (#26027)


Signed-off-by: default avatarAleksandr Samarin <astrlrd@nebius.com>
parent adae0c1f
......@@ -691,11 +691,13 @@ class OpenAIServingChat(OpenAIServing):
if self.use_harmony:
harmony_parser = harmony_parsers[i]
prev_recipient = harmony_parser.current_recipient
delta_text = ""
for token_id in output.token_ids:
harmony_parser.process(token_id)
delta_text += (harmony_parser.last_content_delta
or "")
cur_channel = harmony_parser.current_channel
cur_recipient = harmony_parser.current_recipient
delta_text = harmony_parser.last_content_delta or ""
else:
delta_text = output.text
......
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