summaryrefslogtreecommitdiff
path: root/continuedev
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-05 12:09:10 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-05 12:09:10 -0700
commit68831f3d0af34a6f83b120ade86a1aa69a7017ac (patch)
treeb302c42da963f23b4f4d274b351c3e71476c748d /continuedev
parentb3eb9d934ef6e73ea4f43a9fb7584e948ea9e0b5 (diff)
downloadsncontinue-68831f3d0af34a6f83b120ade86a1aa69a7017ac.tar.gz
sncontinue-68831f3d0af34a6f83b120ade86a1aa69a7017ac.tar.bz2
sncontinue-68831f3d0af34a6f83b120ade86a1aa69a7017ac.zip
explain by default
Diffstat (limited to 'continuedev')
-rw-r--r--continuedev/src/continuedev/core/config.py12
-rw-r--r--continuedev/src/continuedev/core/policy.py6
2 files changed, 9 insertions, 9 deletions
diff --git a/continuedev/src/continuedev/core/config.py b/continuedev/src/continuedev/core/config.py
index 8f7e0b8c..ff7b8cb0 100644
--- a/continuedev/src/continuedev/core/config.py
+++ b/continuedev/src/continuedev/core/config.py
@@ -33,11 +33,11 @@ DEFAULT_SLASH_COMMANDS = [
description="Edit code in the current file or the highlighted code",
step_name="EditHighlightedCodeStep",
),
- SlashCommand(
- name="explain",
- description="Reply to instructions or a question with previous steps and the highlighted code or current file as context",
- step_name="SimpleChatStep",
- ),
+ # SlashCommand(
+ # name="explain",
+ # description="Reply to instructions or a question with previous steps and the highlighted code or current file as context",
+ # step_name="SimpleChatStep",
+ # ),
SlashCommand(
name="config",
description="Open the config file to create new and edit existing slash commands",
@@ -129,7 +129,7 @@ def load_global_config() -> ContinueConfig:
config_path = os.path.join(global_dir, 'config.json')
if not os.path.exists(config_path):
with open(config_path, 'w') as f:
- json.dump(dict(ContinueConfig()), f)
+ json.dump(ContinueConfig().dict(), f)
with open(config_path, 'r') as f:
try:
config_dict = json.load(f)
diff --git a/continuedev/src/continuedev/core/policy.py b/continuedev/src/continuedev/core/policy.py
index ef753ee4..fc9266ab 100644
--- a/continuedev/src/continuedev/core/policy.py
+++ b/continuedev/src/continuedev/core/policy.py
@@ -74,14 +74,14 @@ class DemoPolicy(Policy):
# This could be defined with ObservationTypePolicy. Ergonomics not right though.
user_input = observation.user_input
- slash_command = parse_slash_command(user_input)
+ slash_command = parse_slash_command(user_input, config)
if slash_command is not None:
return slash_command
- custom_command = parse_custom_command(user_input)
+ custom_command = parse_custom_command(user_input, config)
if custom_command is not None:
return custom_command
- return ChatWithFunctions(user_input=user_input)
+ return SimpleChatStep(user_input=user_input)
return None