Spaces:
Runtime error
Runtime error
Commit
·
2715608
1
Parent(s):
0679fd5
Update app.py
Browse files
app.py
CHANGED
@@ -26,9 +26,9 @@ def chatbot(history):
|
|
26 |
|
27 |
# Generate response using conversation history
|
28 |
response = openai.Completion.create(
|
29 |
-
engine="text-
|
30 |
prompt='\n'.join(conversation_history),
|
31 |
-
max_tokens=
|
32 |
)
|
33 |
|
34 |
# Add AI response to conversation history
|
|
|
26 |
|
27 |
# Generate response using conversation history
|
28 |
response = openai.Completion.create(
|
29 |
+
engine="text-turbo-1.5",
|
30 |
prompt='\n'.join(conversation_history),
|
31 |
+
max_tokens=500 # Adjust as needed
|
32 |
)
|
33 |
|
34 |
# Add AI response to conversation history
|