summaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-06-21 21:33:24 -0700
committerTy Dunn <ty@tydunn.com>2023-06-21 21:33:24 -0700
commit8c8e65f552d35679e2d5feb142f01f8a97801d20 (patch)
tree25aab23113af8fa6bb96f91042f030bea08b0e41 /extension
parent6cedd587c6c62bf33349e374aafa83fdc78da510 (diff)
downloadsncontinue-8c8e65f552d35679e2d5feb142f01f8a97801d20.tar.gz
sncontinue-8c8e65f552d35679e2d5feb142f01f8a97801d20.tar.bz2
sncontinue-8c8e65f552d35679e2d5feb142f01f8a97801d20.zip
more progress
Diffstat (limited to 'extension')
-rw-r--r--extension/react-app/src/hooks/ContinueGUIClientProtocol.ts2
-rw-r--r--extension/react-app/src/tabs/gui.tsx1
2 files changed, 3 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/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx
index cbc0e8af..15121010 100644
--- a/extension/react-app/src/tabs/gui.tsx
+++ b/extension/react-app/src/tabs/gui.tsx
@@ -473,6 +473,7 @@ function GUI(props: GUIProps) {
<HeaderButtonWithText
onClick={() => {
setUsingFastModel((prev) => !prev);
+ client?.changeDefaultModel();
}}
text={usingFastModel ? "gpt-3.5-turbo" : "gpt-4"}
>