Jonas Wiesli commited on
Commit
9e9bf1a
1 Parent(s): 96e77e9

fixed wrong json call

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ with gr.Blocks() as iface:
43
  message_history.append({"role": "user", "content": pair[0]})
44
  print()
45
  if pair[1] is not None:
46
- message_history.append({"assistant": "user", "content": pair[1]})
47
  completion = openai.ChatCompletion.create(
48
  model="gpt-3.5-turbo",
49
  messages=message_history
 
43
  message_history.append({"role": "user", "content": pair[0]})
44
  print()
45
  if pair[1] is not None:
46
+ message_history.append({"role": "assistant", "content": pair[1]})
47
  completion = openai.ChatCompletion.create(
48
  model="gpt-3.5-turbo",
49
  messages=message_history