diff options
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/hooks/useContinueGUIProtocol.ts | 4 | ||||
| -rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 10 | 
3 files changed, 9 insertions, 7 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() { diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index 16c950ef..f47371ee 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -427,9 +427,9 @@ function GUI(props: GUIProps) {          }}          hidden={!showDataSharingInfo}        > -        By turning on this switch, you signal that you would  -        contribute this software development data to a publicly  -        accessible, open-source dataset in the future. +        By turning on this switch, you signal that you would contribute this +        software development data to a publicly accessible, open-source dataset +        in the future.          <br />          <br />          <b> @@ -473,8 +473,10 @@ function GUI(props: GUIProps) {          </div>          <HeaderButtonWithText            onClick={() => { +            client?.changeDefaultModel( +              usingFastModel ? "gpt-4" : "gpt-3.5-turbo" +            );              setUsingFastModel((prev) => !prev); -            client?.changeDefaultModel();            }}            text={usingFastModel ? "gpt-3.5-turbo" : "gpt-4"}          > | 
