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

Issue on docs - You need to configure at least an on_chat_start or an on_message callback #97

Open
ThrivingHenry opened this issue Feb 4, 2024 · 1 comment

Comments

@ThrivingHenry
Copy link

ThrivingHenry commented Feb 4, 2024

Path: /integrations/langchain

I installed langchain + chainlit, set my .env with my openAI key, and copied the async LCEL code identically to my app.py.

When I run "chainlit run app.py -w" it shows:
image

In terminal, it shows: You need to configure at least an on_chat_start or an on_message callback but it's clearly defined in the default code.

Any sense what I could have done wrong here?

@willydouhard
Copy link
Contributor

What version of chainlit are you using? Also does it work if you remove -w?

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

2 participants