tommy24 commited on
Commit
ecf0cf7
·
1 Parent(s): aa4a9bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def function(Textbox,Textbox2,Textbox3):
58
  # ]
59
  if Textbox2:
60
  chat = openai.ChatCompletion.create(
61
- model="gpt-3.5-turbo", messages=Textbox2
62
  )
63
  reply = chat.choices[0].message.content
64
  messages.append({"role": "assistant", "content": reply})
 
58
  # ]
59
  if Textbox2:
60
  chat = openai.ChatCompletion.create(
61
+ model="gpt-3.5-turbo", messages=list(Textbox2.items()))
62
  )
63
  reply = chat.choices[0].message.content
64
  messages.append({"role": "assistant", "content": reply})