summaryrefslogtreecommitdiff
path: root/extension/react-app/src/tabs/gui.tsx
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-22 13:56:48 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-22 13:56:48 -0700
commit589fd45fb13c17a1bd13d758806946b55d157a22 (patch)
treefae2ba8fdd8421d74a1520526d6144d1a5af243e /extension/react-app/src/tabs/gui.tsx
parent241c023c37fa47785c8d63d3bd6f77cb30fa2d7a (diff)
downloadsncontinue-589fd45fb13c17a1bd13d758806946b55d157a22.tar.gz
sncontinue-589fd45fb13c17a1bd13d758806946b55d157a22.tar.bz2
sncontinue-589fd45fb13c17a1bd13d758806946b55d157a22.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.tsx10
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"}
>