diff --git a/packages/jupyter-ai-magics/jupyter_ai_magics/utils.py b/packages/jupyter-ai-magics/jupyter_ai_magics/utils.py index 983bbf2d5..5fb8f4fee 100644 --- a/packages/jupyter-ai-magics/jupyter_ai_magics/utils.py +++ b/packages/jupyter-ai-magics/jupyter_ai_magics/utils.py @@ -36,10 +36,9 @@ def get_lm_providers( ) continue except Exception as e: - log.error( - f"Unable to load model provider `{provider_ep.name}`. Printing full exception below." + log.warning( + f"Unable to load model provider `{provider_ep.name}`", exc_info=e ) - log.exception(e) continue if not is_provider_allowed(provider.id, restrictions): @@ -66,7 +65,7 @@ def get_em_providers( try: provider = model_provider_ep.load() except Exception as e: - log.error( + log.warning( f"Unable to load embeddings model provider class from entry point `{model_provider_ep.name}`: %s.", e, )