diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-22 13:56:48 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-22 13:56:48 -0700 |
commit | d1d0e3d6ed02512489b42fa4a8a2176df7187207 (patch) | |
tree | 2eaca56e7db9fa4f22f25f6cbed458150ee6dfc9 /extension/react-app/src/hooks | |
parent | 70ad90116b73909347497a307cb1488065096696 (diff) | |
download | sncontinue-d1d0e3d6ed02512489b42fa4a8a2176df7187207.tar.gz sncontinue-d1d0e3d6ed02512489b42fa4a8a2176df7187207.tar.bz2 sncontinue-d1d0e3d6ed02512489b42fa4a8a2176df7187207.zip |
update global config with default model toggle
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, 3 insertions, 3 deletions
diff --git a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts index 6d9d1fdd..3d8e0a38 100644 --- a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts +++ b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts @@ -13,7 +13,7 @@ abstract class AbstractContinueGUIClientProtocol { callback: (commands: { name: string; description: string }[]) => void ): void; - abstract changeDefaultModel(): void; + abstract changeDefaultModel(model: string): void; abstract sendClear(): void; diff --git a/extension/react-app/src/hooks/useContinueGUIProtocol.ts b/extension/react-app/src/hooks/useContinueGUIProtocol.ts index 4eb68046..f43a66ff 100644 --- a/extension/react-app/src/hooks/useContinueGUIProtocol.ts +++ b/extension/react-app/src/hooks/useContinueGUIProtocol.ts @@ -55,8 +55,8 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { }); } - changeDefaultModel() { - this.messenger.send("change_default_model", {}); + changeDefaultModel(model: string) { + this.messenger.send("change_default_model", { model }); } sendClear() { |