Skip to content

Commit

Permalink
Fixing mypy after a rushed merge (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
gshtras authored Sep 5, 2024
1 parent 598314e commit 8032519
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vllm/entrypoints/sync_openai/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ async def chat_completions(request: ChatCompletionRequest,

while True:
_, token, stats = await result_queue.get()
assert res.choices[0].message.content is not None
res.choices[0].message.content += str(token)
if stats is not None:
res.usage.completion_tokens += stats["tokens"] # type: ignore
Expand Down

0 comments on commit 8032519

Please sign in to comment.