Artin2009 commited on
Commit
b550ebc
1 Parent(s): bb75cce

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +2 -3
chain_app.py CHANGED
@@ -2609,14 +2609,13 @@ async def main(message: cl.Message):
2609
  # await cl.Message(
2610
  # content=result.choices[0].message.content,
2611
  # ).send()
 
 
2612
  for message in client.chat_completion(
2613
  messages=[{"role": "user", "content": message.content}],
2614
  max_tokens=500,
2615
  stream=True,
2616
  ):
2617
-
2618
- msg = cl.Message(content="")
2619
- await msg.send()
2620
  tokens_list = []
2621
  tokens_list.append(message.choices[0].delta.content)
2622
  for token in tokens_list:
 
2609
  # await cl.Message(
2610
  # content=result.choices[0].message.content,
2611
  # ).send()
2612
+ msg = cl.Message(content="")
2613
+ await msg.send()
2614
  for message in client.chat_completion(
2615
  messages=[{"role": "user", "content": message.content}],
2616
  max_tokens=500,
2617
  stream=True,
2618
  ):
 
 
 
2619
  tokens_list = []
2620
  tokens_list.append(message.choices[0].delta.content)
2621
  for token in tokens_list: