Skip to content

Commit

Permalink
修复openai server在stream = true时不并行的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
黄宇扬 committed May 24, 2024
1 parent 57bb8dd commit 3ee69ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/openai_server/fastllm_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ async def chat_completion_full_generator(
result = ""
for res in result_generator:
result += res
asyncio.sleep(0)

choice_data = ChatCompletionResponseChoice(
index=0,
Expand Down

0 comments on commit 3ee69ca

Please sign in to comment.