Skip to content

Commit

Permalink
improve call to action in GenerateCH.handle_exc()
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Nov 6, 2023
1 parent 6b3e0a6 commit 9f89335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 9f89335

Please sign in to comment.