diff options
| author | Ty Dunn <ty@tydunn.com> | 2023-06-21 15:25:49 -0700 | 
|---|---|---|
| committer | Ty Dunn <ty@tydunn.com> | 2023-06-21 15:25:49 -0700 | 
| commit | 2dd87605a05236c1dd10389883766f4c51207d56 (patch) | |
| tree | 447816041f96af866e366c3e7099de82c4af5096 /extension/react-app/src | |
| parent | 233c261862e03960da0346d0dd18303ee002007e (diff) | |
| download | sncontinue-2dd87605a05236c1dd10389883766f4c51207d56.tar.gz sncontinue-2dd87605a05236c1dd10389883766f4c51207d56.tar.bz2 sncontinue-2dd87605a05236c1dd10389883766f4c51207d56.zip  | |
initial ideas
Diffstat (limited to 'extension/react-app/src')
| -rw-r--r-- | extension/react-app/src/hooks/useContinueGUIProtocol.ts | 4 | ||||
| -rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 4 | 
2 files changed, 6 insertions, 2 deletions
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", {});    } diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index f0e3ffd4..15260e0c 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -470,7 +470,7 @@ function GUI(props: GUIProps) {              Contribute Data            </span>          </div> -        {/* <HeaderButtonWithText +        { <HeaderButtonWithText            onClick={() => {              setUsingFastModel((prev) => !prev);            }} @@ -481,7 +481,7 @@ function GUI(props: GUIProps) {            >              {usingFastModel ? "⚡" : "🧠"}            </div> -        </HeaderButtonWithText> */} +        </HeaderButtonWithText>}          <HeaderButtonWithText            onClick={() => {              client?.sendClear();  | 
