mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-06-03 04:17:52 +08:00
[Bugfix]Fix search start_index of stop_checker (#13280)
This commit is contained in:
parent
9076325677
commit
067fa2255b
@ -113,7 +113,7 @@ class StopChecker:
|
|||||||
stop_string_len = len(stop_str)
|
stop_string_len = len(stop_str)
|
||||||
# Avoid searching already-searched text.
|
# Avoid searching already-searched text.
|
||||||
stop_index = output_text.find(stop_str,
|
stop_index = output_text.find(stop_str,
|
||||||
-new_char_count - stop_string_len)
|
1 - new_char_count - stop_string_len)
|
||||||
if stop_index == -1:
|
if stop_index == -1:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user