Skip to content

Commit

Permalink
temp add help message to new chat
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchia committed Aug 12, 2024
1 parent 67191c1 commit 348d857
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/jupyter-ai/jupyter_ai/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 348d857

Please sign in to comment.