You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no recourse for users when the providers/models are removed or re-arranged and the previously selected model is not present in the selection any more. This causes an error on the Chat UI, but has no way for users to correct it; even deleting and re-installing Jupyter AI reads the model config from the same location which causes the same issue.
Here is the error from the server log
[W 2023-10-16 16:16:34.758 ServerApp] jupyter_ai | extension failed loading with message: ValueError("No provider and model found with 'bedrock-chat:anthropic.claude-v1'")
Traceback (most recent call last):
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 356, in load_extension
extension.load_all_points(self.serverapp)
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 228, in load_all_points
return [self.load_point(point_name, serverapp) for point_name in self.extension_points]
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 228, in <listcomp>
return [self.load_point(point_name, serverapp) for point_name in self.extension_points]
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 219, in load_point
return point.load(serverapp)
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 147, in load
return loader(serverapp)
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 466, in _load_jupyter_server_extension
extension.initialize()
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 429, in initialize
self._prepare_settings()
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 310, in _prepare_settings
self.initialize_settings()
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_ai/extension.py", line 42, in initialize_settings
self.settings["jai_config_manager"] = ConfigManager(
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_ai/config_manager.py", line 37, in __init__
self._load()
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_ai/config_manager.py", line 127, in _load
self.update(config, False)
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_ai/config_manager.py", line 40, in update
self._update_lm_provider(config)
File "/opt/anaconda3/envs/quarterly-report-scripts/lib/python3.10/site-packages/jupyter_ai/config_manager.py", line 88, in _update_lm_provider
raise ValueError(f"No provider and model found with '{model_id}'")
ValueError: No provider and model found with 'bedrock-chat:anthropic.claude-v1'
Solution
Add better handling of "missing model" error to show an error in the Chat UI, but present the user with the settings panel, so they can select another provider/model.
The text was updated successfully, but these errors were encountered:
Problem
There is no recourse for users when the providers/models are removed or re-arranged and the previously selected model is not present in the selection any more. This causes an error on the Chat UI, but has no way for users to correct it; even deleting and re-installing Jupyter AI reads the model config from the same location which causes the same issue.
Here is the error from the server log
Solution
Add better handling of "missing model" error to show an error in the Chat UI, but present the user with the settings panel, so they can select another provider/model.
The text was updated successfully, but these errors were encountered: