datacipen commited on
Commit
79a9a34
1 Parent(s): 76cbcd3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -5
main.py CHANGED
@@ -125,15 +125,15 @@ async def set_starters():
125
  ]
126
 
127
  @cl.on_message
128
- async def on_message(msg: cl.Message):
129
  if cl.context.session.client_type == "copilot":
130
 
131
- if msg.type == "system_message":
132
  # do something with the message
133
  await cl.Message(f"Lien : ").send()
134
- print("Message 2 : " + msg.type)
135
- await cl.Message(content=msg.type).send()
136
- await cl.Message(content=msg.output).send()
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