kaitwithkwk commited on
Commit
174b4d9
·
verified ·
1 Parent(s): a3b4cc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -11,7 +11,10 @@ def respond(message, history):
11
 
12
  messages.append({"role": "user", "content": message})
13
 
14
- response = client.chat_completion(messages)
 
 
 
15
 
16
  return response['choices'][0]['message']['content'].strip()
17
 
 
11
 
12
  messages.append({"role": "user", "content": message})
13
 
14
+ response = client.chat_completion(
15
+ messages=messages,
16
+ stream=False
17
+ )
18
 
19
  return response['choices'][0]['message']['content'].strip()
20