From 348d857fa0b2b42cf13a28508c3f6fb8b11cdf32 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 13 Aug 2024 00:28:56 +0800 Subject: [PATCH] temp add help message to new chat --- packages/jupyter-ai/jupyter_ai/handlers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/jupyter-ai/jupyter_ai/handlers.py b/packages/jupyter-ai/jupyter_ai/handlers.py index 8f5600ebd..796c5866f 100644 --- a/packages/jupyter-ai/jupyter_ai/handlers.py +++ b/packages/jupyter-ai/jupyter_ai/handlers.py @@ -244,6 +244,10 @@ def broadcast_message(self, message: Message): else: self.chat_history.clear() self.pending_messages.clear() + # TODO: replace once help/welcome message is part of base chat handler + self.loop.create_task( + self.settings["jai_chat_handlers"]["/help"].process_message(None) + ) async def on_message(self, message): self.log.debug("Message received: %s", message)