Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
7732bbe4
Unverified
Commit
7732bbe4
authored
Jun 24, 2025
by
huangtingwei
Committed by
GitHub
Jun 23, 2025
Browse files
bugfix: Prevent global mutation of conv.stop_str across requests (#7347)
Co-authored-by:
Chang Su
<
chang.s.su@oracle.com
>
parent
ed0a0b69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/entrypoints/openai/serving_chat.py
python/sglang/srt/entrypoints/openai/serving_chat.py
+2
-1
No files found.
python/sglang/srt/entrypoints/openai/serving_chat.py
View file @
7732bbe4
import
copy
import
json
import
json
import
logging
import
logging
import
time
import
time
...
@@ -292,7 +293,7 @@ class OpenAIServingChat(OpenAIServingBase):
...
@@ -292,7 +293,7 @@ class OpenAIServingChat(OpenAIServingBase):
image_data
=
conv
.
image_data
if
conv
.
image_data
else
None
image_data
=
conv
.
image_data
if
conv
.
image_data
else
None
audio_data
=
conv
.
audio_data
if
conv
.
audio_data
else
None
audio_data
=
conv
.
audio_data
if
conv
.
audio_data
else
None
modalities
=
conv
.
modalities
if
conv
.
modalities
else
[]
modalities
=
conv
.
modalities
if
conv
.
modalities
else
[]
stop
=
conv
.
stop_str
or
[]
if
not
request
.
ignore_eos
else
[]
stop
=
copy
.
copy
(
conv
.
stop_str
or
[]
if
not
request
.
ignore_eos
else
[]
)
if
request
.
stop
:
if
request
.
stop
:
if
isinstance
(
request
.
stop
,
str
):
if
isinstance
(
request
.
stop
,
str
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment