Skip to content

Commit

Permalink
remove /clear
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Dec 9, 2024
1 parent 470b8fe commit a37f361
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion packages/jupyter-ai/jupyter_ai/chat_handlers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from .ask import AskChatHandler
from .base import BaseChatHandler, SlashCommandRoutingType
from .clear import ClearChatHandler
from .default import DefaultChatHandler
from .fix import FixChatHandler
from .generate import GenerateChatHandler
Expand Down
26 changes: 0 additions & 26 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/clear.py

This file was deleted.

3 changes: 0 additions & 3 deletions packages/jupyter-ai/jupyter_ai/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from .chat_handlers import (
AskChatHandler,
BaseChatHandler,
ClearChatHandler,
DefaultChatHandler,
FixChatHandler,
GenerateChatHandler,
Expand Down Expand Up @@ -531,7 +530,6 @@ def _init_chat_handlers(
"ychat": ychat,
}
default_chat_handler = DefaultChatHandler(**chat_handler_kwargs)
clear_chat_handler = ClearChatHandler(**chat_handler_kwargs)
generate_chat_handler = GenerateChatHandler(
**chat_handler_kwargs,
log_dir=self.error_logs_dir,
Expand All @@ -544,7 +542,6 @@ def _init_chat_handlers(

chat_handlers["default"] = default_chat_handler
chat_handlers["/ask"] = ask_chat_handler
chat_handlers["/clear"] = clear_chat_handler
chat_handlers["/generate"] = generate_chat_handler
chat_handlers["/learn"] = learn_chat_handler
chat_handlers["/fix"] = fix_chat_handler
Expand Down

0 comments on commit a37f361

Please sign in to comment.