Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
836d4ce1
Unverified
Commit
836d4ce1
authored
Jun 16, 2025
by
Chauncey
Committed by
GitHub
Jun 16, 2025
Browse files
[Bugfix] fix missing 'finish_reason': null in streaming chat (#19662)
Signed-off-by:
chaunceyjiang
<
chaunceyjiang@gmail.com
>
parent
c3fec47b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/entrypoints/openai/serving_chat.py
vllm/entrypoints/openai/serving_chat.py
+1
-1
No files found.
vllm/entrypoints/openai/serving_chat.py
View file @
836d4ce1
...
...
@@ -873,7 +873,7 @@ class OpenAIServingChat(OpenAIServing):
total_tokens
=
num_prompt_tokens
+
completion_tokens
,
)
data
=
chunk
.
model_dump_json
(
exclude_
none
=
True
)
data
=
chunk
.
model_dump_json
(
exclude_
unset
=
True
)
yield
f
"data:
{
data
}
\n\n
"
# once the final token is handled, if stream_options.include_usage
...
...
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