Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,6 +72,8 @@ def chat_completions():
|
|
| 72 |
"Cookie": _COOKIES
|
| 73 |
}
|
| 74 |
_stream=data.get('stream', True)
|
|
|
|
|
|
|
| 75 |
# 发送请求到Akash API
|
| 76 |
response = requests.post(
|
| 77 |
'https://chat.akash.network/api/chat',
|
|
|
|
| 72 |
"Cookie": _COOKIES
|
| 73 |
}
|
| 74 |
_stream=data.get('stream', True)
|
| 75 |
+
if data.get('model', "DeepSeek-R1") == "AkashGen":
|
| 76 |
+
_stream = False
|
| 77 |
# 发送请求到Akash API
|
| 78 |
response = requests.post(
|
| 79 |
'https://chat.akash.network/api/chat',
|