datacipen commited on
Commit
4cc9c80
·
verified ·
1 Parent(s): 7d44fc0

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -2
main.py CHANGED
@@ -129,13 +129,15 @@ async def on_message(message: cl.Message):
129
  await cl.Message(f"> EVENTIA").send()
130
 
131
  if cl.context.session.client_type == "copilot":
132
- print("Message 1 : " + message.output)
133
  if message.type == "system_message":
134
  # do something with the message
135
- print("Message 2 : " + message.output)
136
  await cl.Message(f"Lien : ").send()
 
137
  await cl.Message(content=message.output).send()
138
  return
 
 
 
139
 
140
 
141
  model = await LLMistral()
 
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"Lien : ").send()
135
+ print("Message 2 : " + message.output)
136
  await cl.Message(content=message.output).send()
137
  return
138
+ fn = cl.CopilotFunction(name="test", args={"msg": message.content})
139
+ res = await fn.acall()
140
+ await cl.Message(content=res).send()
141
 
142
 
143
  model = await LLMistral()