nanoppa commited on
Commit
01e9f06
·
verified ·
1 Parent(s): 4a51fee

Update app.py

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