Niansuh commited on
Commit
0a52465
·
verified ·
1 Parent(s): 1d2b7ef

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -77,6 +77,6 @@ async def chat_completions(request: ChatRequest):
77
 
78
  async def event_stream():
79
  async for chunk in async_generator:
80
- yield f"data: {json.dumps({'choices': [{'message': {'role': 'assistant', 'content': chunk}}]}})}\n\n"
81
 
82
  return StreamingResponse(event_stream(), media_type="text/event-stream")
 
77
 
78
  async def event_stream():
79
  async for chunk in async_generator:
80
+ yield f"data: {json.dumps({'choices': [{'message': {'role': 'assistant', 'content': chunk}}]})}\n\n"
81
 
82
  return StreamingResponse(event_stream(), media_type="text/event-stream")