Skip to content

Commit

Permalink
Instantiates class
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWeill committed Oct 25, 2023
1 parent 373260f commit 2e18b38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jupyter-ai/jupyter_ai/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def initialize_settings(self):
)
continue

jai_chat_handlers[command_name] = chat_handler
# The entry point is a class; we need to instantiate the class to send messages to it
jai_chat_handlers[command_name] = chat_handler(**chat_handler_kwargs)
self.log.info(
f"Registered chat handler `{chat_handler.id}` with command `{command_name}`."
)
Expand Down

0 comments on commit 2e18b38

Please sign in to comment.