Revert "initial ideas"

This reverts commit 6c08e6d5be.
This commit is contained in:
Ty Dunn 2023-06-21 15:28:37 -07:00
parent 6c08e6d5be
commit a1f9bfd25c
5 changed files with 2 additions and 17 deletions

View file

@ -45,10 +45,6 @@ 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 = []

View file

@ -116,9 +116,6 @@ 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())

View file

@ -35,10 +35,6 @@ class AbstractGUIProtocolServer(ABC):
def on_retry_at_index(self, index: int):
"""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"""

View file

@ -55,10 +55,6 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol {
});
}
changeDefaultModel() {
this.messenger.send("change_default_model", {});
}
sendClear() {
this.messenger.send("clear_history", {});
}

View file

@ -470,7 +470,7 @@ function GUI(props: GUIProps) {
Contribute Data
</span>
</div>
{ <HeaderButtonWithText
{/* <HeaderButtonWithText
onClick={() => {
setUsingFastModel((prev) => !prev);
}}
@ -481,7 +481,7 @@ function GUI(props: GUIProps) {
>
{usingFastModel ? "⚡" : "🧠"}
</div>
</HeaderButtonWithText>}
</HeaderButtonWithText> */}
<HeaderButtonWithText
onClick={() => {
client?.sendClear();