matthoffner commited on
Commit
7904b82
1 Parent(s): 8abd12f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -73,7 +73,7 @@ async def generate_response(chat_chunks, llm):
73
  ]
74
  }
75
  yield f"data: {json.dumps(response)}\n\n"
76
- yield "event: done\ndata: {}\n\n"
77
 
78
  @app.post("/v1/chat/completions")
79
  async def chat(request: ChatCompletionRequest):
 
73
  ]
74
  }
75
  yield f"data: {json.dumps(response)}\n\n"
76
+ yield dict(data="[DONE]")
77
 
78
  @app.post("/v1/chat/completions")
79
  async def chat(request: ChatCompletionRequest):