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

Catch embedding model validation errors on extension init #735

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

dlqqq
Copy link
Member

@dlqqq dlqqq commented Apr 17, 2024

The embedding model sometimes raises an exception when instantiated, which causes the server extension to fail initializing and show the "There seems to be a problem with the chat backend" error to the user.

This PR catches the raised exception to allow for the server extension to finish initializing even if the embedding model raises an exception.

@dlqqq dlqqq added the bug Something isn't working label Apr 17, 2024
@dlqqq dlqqq merged commit 9c56452 into jupyterlab:main Apr 22, 2024
8 checks passed
@dlqqq
Copy link
Member Author

dlqqq commented Apr 22, 2024

@meeseeksdev please backport to 1.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyter-ai that referenced this pull request Apr 22, 2024
dlqqq added a commit that referenced this pull request Apr 22, 2024
Marchlak pushed a commit to Marchlak/jupyter-ai that referenced this pull request Oct 28, 2024
…#735)

* catch embedding model validation errors on extension init

* pre-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants