diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-25 12:24:45 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-25 12:24:45 -0700 |
commit | b72cbb40276b811bebbe3a82c43c71d3cfe1a147 (patch) | |
tree | 812757fabd0b4f27d3e36e170d5841ebcc093514 /extension/react-app/src/hooks | |
parent | 8cbfc4a3713f2ed79d6d99890dee84173fcfa166 (diff) | |
parent | 3f1123095d2ee652b1db239d325aa74f5acfb0cf (diff) | |
download | sncontinue-b72cbb40276b811bebbe3a82c43c71d3cfe1a147.tar.gz sncontinue-b72cbb40276b811bebbe3a82c43c71d3cfe1a147.tar.bz2 sncontinue-b72cbb40276b811bebbe3a82c43c71d3cfe1a147.zip |
Merge branch 'main' into function-calling
Diffstat (limited to 'extension/react-app/src/hooks')
-rw-r--r-- | extension/react-app/src/hooks/ContinueGUIClientProtocol.ts | 2 | ||||
-rw-r--r-- | extension/react-app/src/hooks/useContinueGUIProtocol.ts | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts index 824bb086..3d8e0a38 100644 --- a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts +++ b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts @@ -13,6 +13,8 @@ abstract class AbstractContinueGUIClientProtocol { callback: (commands: { name: string; description: string }[]) => void ): void; + abstract changeDefaultModel(model: string): void; + abstract sendClear(): void; abstract retryAtIndex(index: number): void; diff --git a/extension/react-app/src/hooks/useContinueGUIProtocol.ts b/extension/react-app/src/hooks/useContinueGUIProtocol.ts index 59397742..f43a66ff 100644 --- a/extension/react-app/src/hooks/useContinueGUIProtocol.ts +++ b/extension/react-app/src/hooks/useContinueGUIProtocol.ts @@ -55,6 +55,10 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { }); } + changeDefaultModel(model: string) { + this.messenger.send("change_default_model", { model }); + } + sendClear() { this.messenger.send("clear_history", {}); } |