mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-06-01 17:17:07 +08:00
[Bugfix] UnboundLocalError when GptOss reasoning specified (#23054)
Signed-off-by: Federico <65908512+coval3nte@users.noreply.github.com>
This commit is contained in:
parent
714872f1a9
commit
585e0bde36
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user