bibibi12345 commited on
Commit
6410ae0
·
verified ·
1 Parent(s): e447957

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -1773,7 +1773,7 @@ async def chat_completions(request: OpenAIRequest, api_key: str = Depends(get_ap
1773
  )
1774
  async for chunk in stream:
1775
  print(chunk.model_dump_json())
1776
- yield f"data: {chunk.model_dump_json()}\n\n"
1777
  yield "data: [DONE]\n\n"
1778
  except Exception as stream_error:
1779
  error_msg = f"Error during OpenAI client streaming for {request.model}: {str(stream_error)}"
 
1773
  )
1774
  async for chunk in stream:
1775
  print(chunk.model_dump_json())
1776
+ yield f"data: {chunk.model_dump_json()}\n\n"
1777
  yield "data: [DONE]\n\n"
1778
  except Exception as stream_error:
1779
  error_msg = f"Error during OpenAI client streaming for {request.model}: {str(stream_error)}"