thefish1 commited on
Commit
a477ef9
·
1 Parent(s): edcec9b

update0808

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -555,7 +555,7 @@ def chatbot_response(message, history, window_size, threshold, score_threshold,u
555
  if ad_summary:
556
  raw_initial_response=openai_client.chat.completions.create(
557
  model="gpt-4o",
558
- messages={"role": "user", "content": message},
559
  )
560
  initial_response=raw_initial_response.choices[0].message.content
561
 
 
555
  if ad_summary:
556
  raw_initial_response=openai_client.chat.completions.create(
557
  model="gpt-4o",
558
+ messages=[{"role": "user", "content": message}],
559
  )
560
  initial_response=raw_initial_response.choices[0].message.content
561