Skip to content

Commit 0063fc3

Browse files
xu-songshreyankg
authored andcommitted
[Bugfix]Fix search start_index of stop_checker (vllm-project#13280)
1 parent 6c8c515 commit 0063fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/engine/output_processor/stop_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def check_stop_strings(
113113
stop_string_len = len(stop_str)
114114
# Avoid searching already-searched text.
115115
stop_index = output_text.find(stop_str,
116-
-new_char_count - stop_string_len)
116+
1 - new_char_count - stop_string_len)
117117
if stop_index == -1:
118118
continue
119119

0 commit comments

Comments
 (0)