Update main.py
Browse files
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 ##########
|