Skip to content

Commit cbd64d4

Browse files
author
Your Name
committed
chunk
1 parent 55bc634 commit cbd64d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/entrypoints/openai/serving_completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ async def completion_stream_generator(
396396
)
397397

398398
# if accumulate, send the usage info attached to last chunk instead
399-
if request.accumulate:
399+
if request.accumulate and chunk is not None:
400400
chunk.usage = final_usage_info
401401
final_usage_chunk = chunk
402402

0 commit comments

Comments
 (0)