Skip to content

Commit

Permalink
Fixes help slash command.
Browse files Browse the repository at this point in the history
  • Loading branch information
3coins committed Apr 12, 2024
1 parent c12b7fd commit efd2c3f
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 efd2c3f

Please sign in to comment.