From d6d5db7c5ff53ee9a8466ee83bc6698d39337a28 Mon Sep 17 00:00:00 2001 From: Andrii Ieroshenko Date: Tue, 12 Dec 2023 16:06:11 -0800 Subject: [PATCH] Update packages/jupyter-ai/jupyter_ai/chat_handlers/base.py Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com> --- packages/jupyter-ai/jupyter_ai/chat_handlers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py index 268e2af76..da7a3a650 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py @@ -136,7 +136,7 @@ def handle_api_key_exc(self, e: Exception, message: HumanChatMessage): if hasattr(self.config_manager, "lm_provider"): name = getattr(self.config_manager.lm_provider, "name", "") provider_name = f" {name}" if name else "" - response = f"Oops! There's a problem with your{provider_name} API key. Please update your{provider_name} API key in the chat settings." + response = f"Oops! There's a problem connecting to {provider_name}. Please update your {provider_name} API key in the chat settings." self.reply(response, message) async def _default_handle_exc(self, e: Exception, message: HumanChatMessage):