Tram-Anh commited on
Commit
d38180d
·
verified ·
1 Parent(s): ba509f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,10 +16,10 @@ def respond(message, history):
16
  ]
17
 
18
  if history:
19
- messages.extend(history)
20
 
21
  response = client.chat_completion(
22
- messages, max_tokens = 100
23
  )
24
 
25
  return response['choices'][0]['message']['content'].strip
 
16
  ]
17
 
18
  if history:
19
+ messages.extend(history)
20
 
21
  response = client.chat_completion(
22
+ messages, max_tokens = 100
23
  )
24
 
25
  return response['choices'][0]['message']['content'].strip