wuki8888 commited on
Commit
224450b
·
verified ·
1 Parent(s): 2961390

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def response(message, history):
47
  data = {
48
  "model": "gpt-3.5-turbo", # 使用的模型是 gpt-4 或 gpt-3.5-turbo
49
  "messages": conversation_history,
50
- "max_tokens": 200 # 控制生成的最大令牌數
51
  }
52
 
53
  # 發送請求到 OpenAI API
 
47
  data = {
48
  "model": "gpt-3.5-turbo", # 使用的模型是 gpt-4 或 gpt-3.5-turbo
49
  "messages": conversation_history,
50
+ "max_tokens": 500 # 控制生成的最大令牌數
51
  }
52
 
53
  # 發送請求到 OpenAI API