Update main.py
Browse files
main.py
CHANGED
@@ -125,15 +125,15 @@ async def set_starters():
|
|
125 |
]
|
126 |
|
127 |
@cl.on_message
|
128 |
-
async def on_message(
|
129 |
if cl.context.session.client_type == "copilot":
|
130 |
|
131 |
-
if
|
132 |
# do something with the message
|
133 |
await cl.Message(f"Lien : ").send()
|
134 |
-
print("Message 2 : " +
|
135 |
-
await cl.Message(content=
|
136 |
-
await cl.Message(content=
|
137 |
return
|
138 |
|
139 |
|
|
|
125 |
]
|
126 |
|
127 |
@cl.on_message
|
128 |
+
async def on_message(message: cl.Message):
|
129 |
if cl.context.session.client_type == "copilot":
|
130 |
|
131 |
+
if message.type == "system_message":
|
132 |
# do something with the message
|
133 |
await cl.Message(f"Lien : ").send()
|
134 |
+
print("Message 2 : " + message.type)
|
135 |
+
await cl.Message(content=message.type).send()
|
136 |
+
await cl.Message(content=message.output).send()
|
137 |
return
|
138 |
|
139 |
|