summaryrefslogtreecommitdiff
path: root/extension/react-app/src/hooks
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-06-22 13:04:46 -0700
committerGitHub <noreply@github.com>2023-06-22 13:04:46 -0700
commite203dd81262d231aed2b73f269c7863dde010d3c (patch)
treebd777a30350df8abef38018951091a24e8588b7c /extension/react-app/src/hooks
parent4c7702f10e2be7e6687d975604c9ac84ad98f15f (diff)
parent71f8e361117ea5b4d88cc5c94e2e54a8ac5f2bf8 (diff)
downloadsncontinue-e203dd81262d231aed2b73f269c7863dde010d3c.tar.gz
sncontinue-e203dd81262d231aed2b73f269c7863dde010d3c.tar.bz2
sncontinue-e203dd81262d231aed2b73f269c7863dde010d3c.zip
Merge pull request #141 from continuedev/model-button
adding button to toggle between 3.5 and 4
Diffstat (limited to 'extension/react-app/src/hooks')
-rw-r--r--extension/react-app/src/hooks/ContinueGUIClientProtocol.ts2
-rw-r--r--extension/react-app/src/hooks/useContinueGUIProtocol.ts4
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..6d9d1fdd 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(): 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..4eb68046 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() {
+ this.messenger.send("change_default_model", {});
+ }
+
sendClear() {
this.messenger.send("clear_history", {});
}