Skip to content

Commit

Permalink
Removes natural language routing type, which is not yet used
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWeill committed Dec 5, 2023
1 parent ffb77a1 commit 74c6d21
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
# Chat handler type, with specific attributes for each
class HandlerRoutingType(BaseModel):
routing_method: ClassVar[str] = ...
"""The routing method that sends commands to this handler.
Either "natural_language" or "slash_command"."""
"""The routing method that sends commands to this handler."""


class SlashCommandRoutingType(HandlerRoutingType):
Expand All @@ -34,15 +33,6 @@ class SlashCommandRoutingType(HandlerRoutingType):
underscores."""


class NaturalLanguageRoutingType(HandlerRoutingType):
routing_method = "natural_language"

description: str
"""Description used for routing requests, to be used when dispatching
messages to model providers. Also shown in the UI for transparency;
optimized for model interpretation, not human-facing help."""


class BaseChatHandler(Configurable):
"""Base ChatHandler class containing shared methods and attributes used by
multiple chat handler classes."""
Expand Down

0 comments on commit 74c6d21

Please sign in to comment.