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

Make callbacks available at the main module level again, but lazily #277

Merged
merged 1 commit into from
Aug 16, 2023

Commits on Aug 14, 2023

  1. Make callbacks available at the main module level again, but lazily

    This keeps the imports fast, but with a few advantages over the
    current implementation:
    
    1. we don't introduce a breaking change to the end users;
    2. it's easier to import `chainlit` once and getting all things from
    there;
    3. doing so also makes it easier to read the code and understand what
    comes from chainlit: `cl.LangchainCallbackHandler` makes it obvious
    that it's Chainlit's callback handler for Langchain (as opposed to
    `LangchainCallbackHandler`, without `cl.` in front).
    ramnes committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    2963180 View commit details
    Browse the repository at this point in the history