Update app.py
Browse files
app.py
CHANGED
@@ -109,4 +109,9 @@ async def chat_completions(request: Request):
|
|
109 |
yield 'data: %s\n\n' % json.dumps(completion_data, separators=(',' ':'))
|
110 |
yield 'data: [DONE]\n\n'
|
111 |
|
112 |
-
return StreamingResponse(stream(), media_type='text/event-stream')
|
|
|
|
|
|
|
|
|
|
|
|
109 |
yield 'data: %s\n\n' % json.dumps(completion_data, separators=(',' ':'))
|
110 |
yield 'data: [DONE]\n\n'
|
111 |
|
112 |
+
return StreamingResponse(stream(), media_type='text/event-stream')
|
113 |
+
|
114 |
+
|
115 |
+
|
116 |
+
# if __name__ == '__main__':
|
117 |
+
# uvicorn.run("app:app", host=site_config['host'], port=site_config['port'])
|