Update app.py
Browse files
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="
|
| 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,
|