summaryrefslogtreecommitdiff
path: root/continuedev/src/continuedev/core
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-28 20:12:56 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-28 20:12:56 -0700
commit58e5dc4a5c4fcbed25170b61fbd88d479c5aebcf (patch)
tree35801617c9182b3887d17c20beb63deebd324302 /continuedev/src/continuedev/core
parenta0352d8efba76ab6a1ebe4a19f0697db0eb4b1d1 (diff)
downloadsncontinue-58e5dc4a5c4fcbed25170b61fbd88d479c5aebcf.tar.gz
sncontinue-58e5dc4a5c4fcbed25170b61fbd88d479c5aebcf.tar.bz2
sncontinue-58e5dc4a5c4fcbed25170b61fbd88d479c5aebcf.zip
fix: :children_crossing: add slash commands to default config
Diffstat (limited to 'continuedev/src/continuedev/core')
-rw-r--r--continuedev/src/continuedev/core/config.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/continuedev/src/continuedev/core/config.py b/continuedev/src/continuedev/core/config.py
index e367e06c..9fbda824 100644
--- a/continuedev/src/continuedev/core/config.py
+++ b/continuedev/src/continuedev/core/config.py
@@ -54,45 +54,6 @@ class ContinueConfig(BaseModel):
context_providers: List[ContextProvider] = []
- # Want to force these to be the slash commands for now
- @validator('slash_commands', pre=True)
- def default_slash_commands_validator(cls, v):
- from ..plugins.steps.open_config import OpenConfigStep
- from ..plugins.steps.clear_history import ClearHistoryStep
- from ..plugins.steps.feedback import FeedbackStep
- from ..plugins.steps.comment_code import CommentCodeStep
- from ..plugins.steps.main import EditHighlightedCodeStep
-
- DEFAULT_SLASH_COMMANDS = [
- SlashCommand(
- name="edit",
- description="Edit code in the current file or the highlighted code",
- step=EditHighlightedCodeStep,
- ),
- SlashCommand(
- name="config",
- description="Open the config file to create new and edit existing slash commands",
- step=OpenConfigStep,
- ),
- SlashCommand(
- name="comment",
- description="Write comments for the current file or highlighted code",
- step=CommentCodeStep,
- ),
- SlashCommand(
- name="feedback",
- description="Send feedback to improve Continue",
- step=FeedbackStep,
- ),
- SlashCommand(
- name="clear",
- description="Clear step history",
- step=ClearHistoryStep,
- )
- ]
-
- return DEFAULT_SLASH_COMMANDS + v
-
@validator('temperature', pre=True)
def temperature_validator(cls, v):
return max(0.0, min(1.0, v))