Unverified Commit 585e0bde authored by Federico's avatar Federico Committed by GitHub
Browse files

[Bugfix] UnboundLocalError when GptOss reasoning specified (#23054)


Signed-off-by: default avatarFederico <65908512+coval3nte@users.noreply.github.com>
parent 714872f1
...@@ -887,7 +887,8 @@ class OpenAIServingChat(OpenAIServing): ...@@ -887,7 +887,8 @@ class OpenAIServingChat(OpenAIServing):
delta_message = DeltaMessage(content=delta_text) delta_message = DeltaMessage(content=delta_text)
# update the previous values for the next iteration # update the previous values for the next iteration
if tool_choice_auto or self.reasoning_parser: if ((tool_choice_auto or self.reasoning_parser)
and not self.use_harmony):
assert previous_texts is not None assert previous_texts is not None
assert all_previous_token_ids is not None assert all_previous_token_ids is not None
previous_texts[i] = current_text previous_texts[i] = current_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