Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def chatbot(input, conversation_history=[]):
|
|
| 34 |
|
| 35 |
try:
|
| 36 |
# Generate a response using OpenAI's GPT model
|
| 37 |
-
chat = client.chat.completions.create(model="gpt-
|
| 38 |
reply = chat.choices[0].message.content
|
| 39 |
except Exception as e:
|
| 40 |
# Handle errors gracefully
|
|
|
|
| 34 |
|
| 35 |
try:
|
| 36 |
# Generate a response using OpenAI's GPT model
|
| 37 |
+
chat = client.chat.completions.create(model="gpt-4o-mini", messages=messages)
|
| 38 |
reply = chat.choices[0].message.content
|
| 39 |
except Exception as e:
|
| 40 |
# Handle errors gracefully
|