Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,7 +122,7 @@ def chat_completions():
|
|
| 122 |
}
|
| 123 |
headers = {"Content-Type": "application/json", "Cookie": _COOKIES}
|
| 124 |
# 默认启用 stream 模式,但针对 AkashGen 模型关闭流式响应
|
| 125 |
-
stream_flag = data.get('stream',
|
| 126 |
if model == "AkashGen":
|
| 127 |
stream_flag = False
|
| 128 |
|
|
|
|
| 122 |
}
|
| 123 |
headers = {"Content-Type": "application/json", "Cookie": _COOKIES}
|
| 124 |
# 默认启用 stream 模式,但针对 AkashGen 模型关闭流式响应
|
| 125 |
+
stream_flag = data.get('stream', False)
|
| 126 |
if model == "AkashGen":
|
| 127 |
stream_flag = False
|
| 128 |
|