diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-22 13:56:48 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-22 13:56:48 -0700 |
commit | d1d0e3d6ed02512489b42fa4a8a2176df7187207 (patch) | |
tree | 2eaca56e7db9fa4f22f25f6cbed458150ee6dfc9 /extension/react-app/src/tabs/gui.tsx | |
parent | 70ad90116b73909347497a307cb1488065096696 (diff) | |
download | sncontinue-d1d0e3d6ed02512489b42fa4a8a2176df7187207.tar.gz sncontinue-d1d0e3d6ed02512489b42fa4a8a2176df7187207.tar.bz2 sncontinue-d1d0e3d6ed02512489b42fa4a8a2176df7187207.zip |
update global config with default model toggle
Diffstat (limited to 'extension/react-app/src/tabs/gui.tsx')
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
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"} > |