Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,9 +20,9 @@ def ai_response(message, chat_history):
20
 
21
  # 构建请求体
22
  payload = {
23
- "model": "chat-model", # 替换为适当的模型名称
24
  "messages": conversation,
25
- "max_tokens": 150
26
  }
27
 
28
  # 设置请求头,包括 API 密钥
 
20
 
21
  # 构建请求体
22
  payload = {
23
+ "model": "gpt-4o", # 使用 gpt-4o 模型(如果此模型为该 API 支持的模型)
24
  "messages": conversation,
25
+ "max_tokens": 850
26
  }
27
 
28
  # 设置请求头,包括 API 密钥