Update main.py
Browse files
main.py
CHANGED
@@ -40,7 +40,7 @@ async def chat_completion(request: ChatRequest):
|
|
40 |
"model": request.model
|
41 |
}
|
42 |
|
43 |
-
|
44 |
def event_stream():
|
45 |
chat_id = f"chatcmpl-{unix_id()}"
|
46 |
created = int(time.time())
|
|
|
40 |
"model": request.model
|
41 |
}
|
42 |
|
43 |
+
if request.stream:
|
44 |
def event_stream():
|
45 |
chat_id = f"chatcmpl-{unix_id()}"
|
46 |
created = int(time.time())
|