diff options
author | Ty Dunn <ty@tydunn.com> | 2023-06-21 21:33:24 -0700 |
---|---|---|
committer | Ty Dunn <ty@tydunn.com> | 2023-06-21 21:33:24 -0700 |
commit | 8c8e65f552d35679e2d5feb142f01f8a97801d20 (patch) | |
tree | 25aab23113af8fa6bb96f91042f030bea08b0e41 /extension/react-app/src | |
parent | 6cedd587c6c62bf33349e374aafa83fdc78da510 (diff) | |
download | sncontinue-8c8e65f552d35679e2d5feb142f01f8a97801d20.tar.gz sncontinue-8c8e65f552d35679e2d5feb142f01f8a97801d20.tar.bz2 sncontinue-8c8e65f552d35679e2d5feb142f01f8a97801d20.zip |
more progress
Diffstat (limited to 'extension/react-app/src')
-rw-r--r-- | extension/react-app/src/hooks/ContinueGUIClientProtocol.ts | 2 | ||||
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 1 |
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"} > |