I am trying to build a chainlit app with copilot, but I can't get the copilot.
I only installed chainlit and run the file following the tutorial.
Uncaught TypeError: Failed to construct 'URL': Invalid URL
at index.js:275:3885
at index.js:4208:91586
index.html:12
Uncaught TypeError: window.mountChainlitWidget is not a function
at index.html:12:12
Code:
import chainlit as cl
@cl.on_message
async def on_message(msg: cl.Message):
if cl.context.session.client_type == "copilot":
fn = cl.CopilotFunction(name="test", args={"msg": msg.content})
res = await fn.acall()
await cl.Message(content=res).send()
I am trying to build a chainlit app with copilot, but I can't get the copilot.
I only installed chainlit and run the file following the tutorial.
Code: