summaryrefslogtreecommitdiff
path: root/extension/react-app/src
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
commit695abf458f25e0cb7b05cebe3a0f9ec2c97e7797 (patch)
tree7a7a4c5d2d054e4a340a2fb320567849fe3b2add /extension/react-app/src
parent559a5301c382934f48c81f476909931a0a0e9b44 (diff)
downloadsncontinue-695abf458f25e0cb7b05cebe3a0f9ec2c97e7797.tar.gz
sncontinue-695abf458f25e0cb7b05cebe3a0f9ec2c97e7797.tar.bz2
sncontinue-695abf458f25e0cb7b05cebe3a0f9ec2c97e7797.zip
more progress
Diffstat (limited to 'extension/react-app/src')
-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"}
>