summaryrefslogtreecommitdiff
path: root/continuedev/src
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-06-21 15:36:12 -0700
committerTy Dunn <ty@tydunn.com>2023-06-21 15:36:12 -0700
commit6cedd587c6c62bf33349e374aafa83fdc78da510 (patch)
treed4e48ea65efc5880bc4fc8b6a7e3dc7e792dfdbb /continuedev/src
parent0eceef43ae9d0e0e195a9dbbe1e038b4e02ea61b (diff)
downloadsncontinue-6cedd587c6c62bf33349e374aafa83fdc78da510.tar.gz
sncontinue-6cedd587c6c62bf33349e374aafa83fdc78da510.tar.bz2
sncontinue-6cedd587c6c62bf33349e374aafa83fdc78da510.zip
initial ideas
Diffstat (limited to 'continuedev/src')
-rw-r--r--continuedev/src/continuedev/core/autopilot.py4
-rw-r--r--continuedev/src/continuedev/server/gui.py3
-rw-r--r--continuedev/src/continuedev/server/gui_protocol.py4
3 files changed, 11 insertions, 0 deletions
diff --git a/continuedev/src/continuedev/core/autopilot.py b/continuedev/src/continuedev/core/autopilot.py
index a6e688ae..2ed77e4d 100644
--- a/continuedev/src/continuedev/core/autopilot.py
+++ b/continuedev/src/continuedev/core/autopilot.py
@@ -45,6 +45,10 @@ class Autopilot(ContinueBaseModel):
async def get_available_slash_commands(self) -> List[Dict]:
return list(map(lambda x: {"name": x.name, "description": x.description}, self.continue_sdk.config.slash_commands)) or []
+ async def change_default_model(self):
+ # TODO: Implement this
+ temp = self.continue_sdk.config.slash_commands
+
async def clear_history(self):
self.history = History.from_empty()
self._main_user_input_queue = []
diff --git a/continuedev/src/continuedev/server/gui.py b/continuedev/src/continuedev/server/gui.py
index cf046734..53a5f16b 100644
--- a/continuedev/src/continuedev/server/gui.py
+++ b/continuedev/src/continuedev/server/gui.py
@@ -116,6 +116,9 @@ class GUIProtocolServer(AbstractGUIProtocolServer):
asyncio.create_task(
self.session.autopilot.retry_at_index(index))
+ def on_change_default_model(self):
+ asyncio.create_task(self.session.autopilot.change_default_model())
+
def on_clear_history(self):
asyncio.create_task(self.session.autopilot.clear_history())
diff --git a/continuedev/src/continuedev/server/gui_protocol.py b/continuedev/src/continuedev/server/gui_protocol.py
index d9506c6f..66839d9b 100644
--- a/continuedev/src/continuedev/server/gui_protocol.py
+++ b/continuedev/src/continuedev/server/gui_protocol.py
@@ -36,6 +36,10 @@ class AbstractGUIProtocolServer(ABC):
"""Called when the user requests a retry at a previous index"""
@abstractmethod
+ def on_change_default_model(self):
+ """Called when the user requests to change the default model"""
+
+ @abstractmethod
def on_clear_history(self):
"""Called when the user requests to clear the history"""