Artin2009 commited on
Commit
f7cb4e5
1 Parent(s): 859e47a

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +3 -1
chain_app.py CHANGED
@@ -699,7 +699,9 @@ async def main(message: cl.Message):
699
  )
700
 
701
  for event in stream:
702
- await cl.Message(content=event.text).send()
 
 
703
  @cl.on_settings_update
704
  async def setup_agent(settings):
705
  print("on_settings_update", settings)
 
699
  )
700
 
701
  for event in stream:
702
+ if event.event_type == "text-generation":
703
+ await cl.Message(content=event.text).send()
704
+
705
  @cl.on_settings_update
706
  async def setup_agent(settings):
707
  print("on_settings_update", settings)