Update main.py
Browse files
main.py
CHANGED
@@ -125,14 +125,6 @@ async def set_starters():
|
|
125 |
|
126 |
@cl.on_message
|
127 |
async def on_message(message: cl.Message):
|
128 |
-
if cl.context.session.client_type == "copilot":
|
129 |
-
if message.type == "system_message":
|
130 |
-
await cl.Message(content=f"System message received: {message.content}").send()
|
131 |
-
return
|
132 |
-
fn = cl.CopilotFunction(name="test", args={"msg": message.content})
|
133 |
-
res = await fn.acall()
|
134 |
-
await cl.Message(content=res).send()
|
135 |
-
|
136 |
await cl.Message(f"> EVENTIA").send()
|
137 |
model = await LLMistral()
|
138 |
retriever = await Retriever("videosTC")
|
|
|
125 |
|
126 |
@cl.on_message
|
127 |
async def on_message(message: cl.Message):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
await cl.Message(f"> EVENTIA").send()
|
129 |
model = await LLMistral()
|
130 |
retriever = await Retriever("videosTC")
|