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
fb9fb351
"vscode:/vscode.git/clone" did not exist on "fb61c75e392ae0a3813955d56fb5aceecacff2e4"
Unverified
Commit
fb9fb351
authored
Nov 13, 2024
by
chottolabs
Committed by
GitHub
Nov 14, 2024
Browse files
set content to empty string (#2026)
parent
c722d9bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/openai_api/adapter.py
python/sglang/srt/openai_api/adapter.py
+1
-1
No files found.
python/sglang/srt/openai_api/adapter.py
View file @
fb9fb351
...
...
@@ -1166,7 +1166,7 @@ async def v1_chat_completions(tokenizer_manager, raw_request: Request):
is_first
=
False
choice_data
=
ChatCompletionResponseStreamChoice
(
index
=
index
,
delta
=
DeltaMessage
(
role
=
"assistant"
),
delta
=
DeltaMessage
(
role
=
"assistant"
,
content
=
""
),
finish_reason
=
(
finish_reason
[
"type"
]
if
finish_reason
else
""
),
...
...
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