-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
@data_layer API hook to configure data layer. #1463
Conversation
85fd27f
to
8a03e71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old way of setting a custom data layer still works right? Since i dont see the e2e test being updated
It technically might, but it was using a variable intentionally marked as private (e.g. prefixed by The E2E test is updated: https://github.com/Chainlit/chainlit/pull/1463/files#diff-dd1c256dace91e15fad2a2b0f93a821e2dd256dd48ab991c790b059f9bde2d60 I only want to support this API going forward. The old stuff might work and might keep working but should not support it. |
556105a
to
6d7436b
Compare
@cl.datalayer
decorator for configuring data layers, rather than forcing users to override_data_layer
.This is a first step towards full support of pluggable data layers.