Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 24, 2023
1 parent b221758 commit 864bd5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jupyter-ai/jupyter_ai/chat_handlers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class BaseChatHandler(Configurable):
Not necessary when the routing method is "slash_command"."""

# TODO: make NotImplemented
help: ClassVar[str] = "This is used when the message in the chat interface is not a command"
help: ClassVar[
str
] = "This is used when the message in the chat interface is not a command"
"""What this chat handler does, which third-party models it contacts,
the format of the data it returns to the user, etc. Used in the UI."""

Expand Down
4 changes: 4 additions & 0 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

CUSTOM_MESSAGE = "This handler displays a custom message in response to any prompt."


def CustomMessage():
return AgentChatMessage(
id=uuid4().hex,
Expand All @@ -16,9 +17,12 @@ def CustomMessage():
reply_to="",
)


"""
This is a sample custom chat handler class to demonstrate entry points.
"""


class CustomChatHandler(BaseChatHandler):
id = "custom"
name = "Custom"
Expand Down

0 comments on commit 864bd5a

Please sign in to comment.