Skip to content

Commit

Permalink
[v3-dev] Remove /export, /clear, and /fix (#1148)
Browse files Browse the repository at this point in the history
* remove /export

* remove /clear

* remove /fix
  • Loading branch information
dlqqq authored Dec 10, 2024
1 parent b37b7be commit a0b8e84
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 196 deletions.
3 changes: 0 additions & 3 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@

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

This file was deleted.

49 changes: 0 additions & 49 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/export.py

This file was deleted.

106 changes: 0 additions & 106 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/fix.py

This file was deleted.

12 changes: 0 additions & 12 deletions packages/jupyter-ai/jupyter_ai/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import re
import time
import types
import uuid
from functools import partial
from typing import Dict, Optional

Expand All @@ -24,10 +23,7 @@
from .chat_handlers import (
AskChatHandler,
BaseChatHandler,
ClearChatHandler,
DefaultChatHandler,
ExportChatHandler,
FixChatHandler,
GenerateChatHandler,
HelpChatHandler,
LearnChatHandler,
Expand Down Expand Up @@ -533,7 +529,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 @@ -542,17 +537,10 @@ def _init_chat_handlers(
retriever = Retriever(learn_chat_handler=learn_chat_handler)
ask_chat_handler = AskChatHandler(**chat_handler_kwargs, retriever=retriever)

export_chat_handler = ExportChatHandler(**chat_handler_kwargs)

fix_chat_handler = FixChatHandler(**chat_handler_kwargs)

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["/export"] = export_chat_handler
chat_handlers["/fix"] = fix_chat_handler

slash_command_pattern = r"^[a-zA-Z0-9_]+$"
for chat_handler_ep in chat_handler_eps:
Expand Down

0 comments on commit a0b8e84

Please sign in to comment.