Artin2009 commited on
Commit
470c934
1 Parent(s): fbd6847

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +2 -2
chain_app.py CHANGED
@@ -697,8 +697,8 @@ async def main(message: cl.Message):
697
  connectors=[],
698
  )
699
 
700
-
701
- await cl.Message(content=event.text).send()
702
  @cl.on_settings_update
703
  async def setup_agent(settings):
704
  print("on_settings_update", settings)
 
697
  connectors=[],
698
  )
699
 
700
+ for event in stream:
701
+ await cl.Message(content=event.text).send()
702
  @cl.on_settings_update
703
  async def setup_agent(settings):
704
  print("on_settings_update", settings)