Hikmahhh commited on
Commit
79dfcc7
·
verified ·
1 Parent(s): 611fea9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def responding(message, history):
9
 
10
  if history:
11
  messages.extend(history)
12
- messages.append({"role": "user", "content": messages})
13
  responses = client.chat_completion(messages, max_tokens = 1000)
14
 
15
  return responses['choices'][0]['message']['content'].strip()
 
9
 
10
  if history:
11
  messages.extend(history)
12
+ messages.append({"role": "user", "content": message})
13
  responses = client.chat_completion(messages, max_tokens = 1000)
14
 
15
  return responses['choices'][0]['message']['content'].strip()