TuanScientist commited on
Commit
2715608
·
1 Parent(s): 0679fd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-davinci-003",
30
  prompt='\n'.join(conversation_history),
31
- max_tokens=1000 # Adjust as needed
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