datacipen commited on
Commit
f649b02
1 Parent(s): 64e3aee

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +8 -0
main.py CHANGED
@@ -127,6 +127,14 @@ async def set_starters():
127
  @cl.on_message
128
  async def on_message(message: cl.Message):
129
  await cl.Message(f"> EVENTIA").send()
 
 
 
 
 
 
 
 
130
  model = await LLMistral()
131
  retriever = await Retriever("videosTC")
132
  ########## Chain with streaming ##########
 
127
  @cl.on_message
128
  async def on_message(message: cl.Message):
129
  await cl.Message(f"> EVENTIA").send()
130
+
131
+ if cl.context.session.client_type == "copilot":
132
+ if message.type == "system_message":
133
+ # do something with the message
134
+ await cl.Message(f"{message.output}").send()
135
+ return
136
+
137
+
138
  model = await LLMistral()
139
  retriever = await Retriever("videosTC")
140
  ########## Chain with streaming ##########