Artin2009 commited on
Commit
84f6ad8
·
verified ·
1 Parent(s): bb6577d

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +1 -1
chain_app.py CHANGED
@@ -2617,7 +2617,7 @@ async def main(message: cl.Message):
2617
  max_tokens=500,
2618
  stream=True,
2619
  ):
2620
- tokens_list.append(message)
2621
  for token in tokens_list:
2622
  if token != "":
2623
  await msg.stream_token(token)
 
2617
  max_tokens=500,
2618
  stream=True,
2619
  ):
2620
+ tokens_list.append(message.choices[0].delta.content)
2621
  for token in tokens_list:
2622
  if token != "":
2623
  await msg.stream_token(token)