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

Format image provider #66

Merged
merged 15 commits into from
May 1, 2023
Prev Previous commit
Next Next commit
Removes debug info from load
  • Loading branch information
JasonWeill committed Apr 28, 2023
commit 876b1f5e29818808369b7d7ea59b0e15769db96d
4 changes: 1 addition & 3 deletions packages/jupyter-ai-magics/jupyter_ai_magics/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,9 @@ def __init__(self, shell):
model_provider_eps = eps.select(group="jupyter_ai.model_providers")
for model_provider_ep in model_provider_eps:
try:
model_provider_ep_name = model_provider_ep.name
print(f"Loading entry point {model_provider_ep_name}");
Provider = model_provider_ep.load()
print(f"Loaded entry point {model_provider_ep_name}");
except:
print(f"Unable to load entry point {model_provider_ep.name}");
traceback.print_exc()
continue
self.providers[Provider.id] = Provider
Expand Down