Skip to content

Commit

Permalink
Backport PR jupyterlab#729: Fixes help slash command.
Browse files Browse the repository at this point in the history
  • Loading branch information
3coins authored and meeseeksmachine committed Apr 25, 2024
1 parent fad3400 commit ceb8654
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/jupyter-ai/jupyter_ai/chat_handlers/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,14 @@ def __init__(self, *args, chat_handlers: Dict[str, BaseChatHandler], **kwargs):
self._chat_handlers = chat_handlers

async def process_message(self, message: HumanChatMessage):
self.reply(_format_help_message(self._chat_handlers), message)
persona = self.config_manager.persona
lm_provider = self.config_manager.lm_provider
unsupported_slash_commands = (
lm_provider.unsupported_slash_commands if lm_provider else set()
)
self.reply(
_format_help_message(
self._chat_handlers, persona, unsupported_slash_commands
),
message,
)

0 comments on commit ceb8654

Please sign in to comment.