Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copilot instructions don't match cookbook #126

Open
dahifi opened this issue Apr 23, 2024 · 0 comments
Open

Copilot instructions don't match cookbook #126

dahifi opened this issue Apr 23, 2024 · 0 comments

Comments

@dahifi
Copy link
Contributor

dahifi commented Apr 23, 2024

The script snippet at https://docs.chainlit.io/deployment/copilot needs to be updated to include this listener, which appears to the correct way to do this in the cookbook and the community.

    window.addEventListener("chainlit-call-fn", (e) => {
      const { name, args, callback } = e.detail;
      if (name === "test") {
        callback("You sent: " + args.msg);
      }
    });

Should solve Chainlit/chainlit#929

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant