From 9f89335931ae6b53915ee3da93222b12fb00a23d Mon Sep 17 00:00:00 2001 From: "David L. Qiu" Date: Mon, 6 Nov 2023 13:25:42 -0800 Subject: [PATCH] improve call to action in GenerateCH.handle_exc() --- packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py index 5f4fa82fc..e3f84a924 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py @@ -269,5 +269,5 @@ async def handle_exc(self, e: Exception, message: HumanChatMessage): with log_path.open("w") as log: traceback.print_exc(file=log) - response = f"An error occurred while generating the notebook. The error details have been saved to `./{log_path}`.\n\nSome language models require multiple `/generate` attempts before a notebook is generated." + response = f"An error occurred while generating the notebook. The error details have been saved to `./{log_path}`.\n\nTry running `/generate` again, as some language models require multiple attempts before a notebook is generated." self.reply(response, message)