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 | 589fd45fb13c17a1bd13d758806946b55d157a22 (patch) | |
tree | fae2ba8fdd8421d74a1520526d6144d1a5af243e /extension/react-app/src/hooks | |
parent | 241c023c37fa47785c8d63d3bd6f77cb30fa2d7a (diff) | |
download | sncontinue-589fd45fb13c17a1bd13d758806946b55d157a22.tar.gz sncontinue-589fd45fb13c17a1bd13d758806946b55d157a22.tar.bz2 sncontinue-589fd45fb13c17a1bd13d758806946b55d157a22.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() { |