Skip to content

Commit

Permalink
Removes unnecessary custom message
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWeill committed Oct 25, 2023
1 parent 4a51c8e commit 373260f
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/custom.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
import time
from typing import List
from uuid import uuid4

from jupyter_ai.models import AgentChatMessage, HumanChatMessage
from jupyter_ai.models import HumanChatMessage

from .base import BaseChatHandler

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


def CustomMessage():
return AgentChatMessage(
id=uuid4().hex,
time=time.time(),
body=CUSTOM_MESSAGE,
reply_to="",
)


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

0 comments on commit 373260f

Please sign in to comment.