Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.86k stars 903 forks source link

1.2.0 - SQLAlchemyDataLayer missing required get_element() method #1345

Closed hayescode closed 1 week ago

hayescode commented 1 week ago

Describe the bug 1.2.0 refactored the base data layer class and improved checking. The SQLAlchemyDataLayer is missing this abstract method and throws an error when attempting to instantiate as before.

    db = cl_data._data_layer = SQLAlchemyDataLayer(conninfo=creds['SQLALCHEMY_CONNINFO'], ssl_require=True, storage_provider=adls, user_thread_limit=100, show_logger=False)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Can't instantiate abstract class SQLAlchemyDataLayer with abstract method get_element