nanoppa commited on
Commit
6a6c7a5
·
verified ·
1 Parent(s): a83a0d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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',