dsaigc commited on
Commit
8069345
·
1 Parent(s): 84d9151

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def chat_with_chatgpt(user_id, user_message):
34
 
35
  # 调用ChatGPT API
36
  response = openai.Completion.create(
37
- engine="text-davinci-002",
38
  prompt=[{"role": "system", "content": "You are a helpful assistant."}] + user_dialogue_histories[user_id],
39
  max_tokens=150,
40
  n=1,
 
34
 
35
  # 调用ChatGPT API
36
  response = openai.Completion.create(
37
+ engine="gpt-3.5-turbo",
38
  prompt=[{"role": "system", "content": "You are a helpful assistant."}] + user_dialogue_histories[user_id],
39
  max_tokens=150,
40
  n=1,