diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-22 13:07:03 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-22 13:07:03 -0700 |
commit | 241c023c37fa47785c8d63d3bd6f77cb30fa2d7a (patch) | |
tree | b1a4ac2862c8dc5d805a948a6a0a1249aef9bc34 /extension/react-app/src/tabs | |
parent | f8bc06261464cd46c31a23cc8cbc0e76fb642d18 (diff) | |
parent | 4a77e7251c36dfcce15d68471dd8865c698ad679 (diff) | |
download | sncontinue-241c023c37fa47785c8d63d3bd6f77cb30fa2d7a.tar.gz sncontinue-241c023c37fa47785c8d63d3bd6f77cb30fa2d7a.tar.bz2 sncontinue-241c023c37fa47785c8d63d3bd6f77cb30fa2d7a.zip |
Merge branch 'main' of https://github.com/continuedev/continue
Diffstat (limited to 'extension/react-app/src/tabs')
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index f0e3ffd4..16c950ef 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -230,6 +230,7 @@ function GUI(props: GUIProps) { console.log("CLIENT ON STATE UPDATE: ", client, client?.onStateUpdate); client?.onStateUpdate((state) => { // Scroll only if user is at very bottom of the window. + setUsingFastModel(state.default_model === "gpt-3.5-turbo"); const shouldScrollToBottom = topGuiDivRef.current && topGuiDivRef.current?.offsetHeight - window.scrollY < 100; @@ -470,9 +471,10 @@ function GUI(props: GUIProps) { Contribute Data </span> </div> - {/* <HeaderButtonWithText + <HeaderButtonWithText onClick={() => { setUsingFastModel((prev) => !prev); + client?.changeDefaultModel(); }} text={usingFastModel ? "gpt-3.5-turbo" : "gpt-4"} > @@ -481,7 +483,7 @@ function GUI(props: GUIProps) { > {usingFastModel ? "⚡" : "🧠"} </div> - </HeaderButtonWithText> */} + </HeaderButtonWithText> <HeaderButtonWithText onClick={() => { client?.sendClear(); |