Skip to content

Commit 74119fb

Browse files
committed
support anthropic endpoint
Signed-off-by: liuli <[email protected]>
1 parent 72caf4d commit 74119fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vllm/entrypoints/anthropic/serving_messages.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ async def message_stream_converter(
324324
yield f"data: {data}\n\n"
325325
content_block_started = True
326326

327+
if origin_chunk.choices[0].delta.content == "":
328+
continue
327329
chunk = AnthropicStreamEvent(
328330
index=content_block_index,
329331
type="content_block_delta",

0 commit comments

Comments
 (0)