KingNish commited on
Commit
7659619
1 Parent(s): a084afb

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -227,7 +227,7 @@ def model_inference(
227
  messages += f"\n<|im_start|>assistant\n{str(msg[1])}<|im_end|>"
228
 
229
  messages+=f"\n<|im_start|>user\n{user_prompt}<|im_end|>\n<|im_start|>web_result\n{web2}<|im_end|>\n<|im_start|>assistant\n"
230
- stream = client_mistral.text_generation(messages, **generate_kwargs)
231
  output = ""
232
  # Construct the output from the stream of tokens
233
  for response in stream:
 
227
  messages += f"\n<|im_start|>assistant\n{str(msg[1])}<|im_end|>"
228
 
229
  messages+=f"\n<|im_start|>user\n{user_prompt}<|im_end|>\n<|im_start|>web_result\n{web2}<|im_end|>\n<|im_start|>assistant\n"
230
+ stream = client_mixtral.text_generation(messages, **generate_kwargs)
231
  output = ""
232
  # Construct the output from the stream of tokens
233
  for response in stream: