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
354cd580
Unverified
Commit
354cd580
authored
Mar 19, 2026
by
cdpath
Committed by
GitHub
Mar 19, 2026
Browse files
fix(anthropic): remove non-standard 'data: [DONE]' from Anthropic streaming (#37510)
Signed-off-by:
cdpath
<
cdpath@outlook.com
>
parent
d49f2731
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
vllm/entrypoints/anthropic/serving.py
vllm/entrypoints/anthropic/serving.py
+0
-3
No files found.
vllm/entrypoints/anthropic/serving.py
View file @
354cd580
...
...
@@ -576,7 +576,6 @@ class AnthropicServingMessages(OpenAIServingChat):
exclude_unset
=
True
,
exclude_none
=
True
)
yield
wrap_data_with_event
(
data
,
"message_stop"
)
yield
"data: [DONE]
\n\n
"
else
:
origin_chunk
=
ChatCompletionStreamResponse
.
model_validate_json
(
data_str
...
...
@@ -773,7 +772,6 @@ class AnthropicServingMessages(OpenAIServingChat):
)
data
=
error_response
.
model_dump_json
(
exclude_unset
=
True
)
yield
wrap_data_with_event
(
data
,
"error"
)
yield
"data: [DONE]
\n\n
"
except
Exception
as
e
:
logger
.
exception
(
"Error in message stream converter."
)
...
...
@@ -783,7 +781,6 @@ class AnthropicServingMessages(OpenAIServingChat):
)
data
=
error_response
.
model_dump_json
(
exclude_unset
=
True
)
yield
wrap_data_with_event
(
data
,
"error"
)
yield
"data: [DONE]
\n\n
"
async
def
count_tokens
(
self
,
...
...
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