diff --git a/packages/jupyter-ai/jupyter_ai/utils.py b/packages/jupyter-ai/jupyter_ai/utils.py index 4827a52da..3bb48d515 100644 --- a/packages/jupyter-ai/jupyter_ai/utils.py +++ b/packages/jupyter-ai/jupyter_ai/utils.py @@ -30,7 +30,6 @@ def is_api_key_exc(e: Exception): Determine if the exception is an AI21 API key error. """ if isinstance(e, ValueError): - # Check if the exception message contains "status code 401" return "status code 401" in str(e) return False