diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-02 15:47:14 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-02 15:47:14 -0700 |
commit | 4657f30167d18c42aa66cdd841965c9661669d3f (patch) | |
tree | d3deb128376154818780f249a71df4088826a289 /extension/react-app/src/tabs | |
parent | 5948aa251bde983fb3e5ee9782ce17879451f4b8 (diff) | |
download | sncontinue-4657f30167d18c42aa66cdd841965c9661669d3f.tar.gz sncontinue-4657f30167d18c42aa66cdd841965c9661669d3f.tar.bz2 sncontinue-4657f30167d18c42aa66cdd841965c9661669d3f.zip |
no more gpt-3.5-turbo
Diffstat (limited to 'extension/react-app/src/tabs')
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index 39925fc5..bc0e5365 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -310,6 +310,7 @@ function GUI(props: GUIProps) { // } as any); const [showFeedbackDialog, setShowFeedbackDialog] = useState(false); + const [feedbackDialogMessage, setFeedbackDialogMessage] = useState(""); const topGuiDivRef = useRef<HTMLDivElement>(null); const client = useContinueGUIProtocol(); @@ -458,6 +459,7 @@ function GUI(props: GUIProps) { onClose={() => { setShowFeedbackDialog(false); }} + message={feedbackDialogMessage} ></TextDialog> <TopGUIDiv @@ -593,17 +595,24 @@ function GUI(props: GUIProps) { </div> <HeaderButtonWithText onClick={() => { - client?.changeDefaultModel( - usingFastModel ? "gpt-4" : "gpt-3.5-turbo" - ); + // client?.changeDefaultModel( + // usingFastModel ? "gpt-4" : "gpt-3.5-turbo" + // ); + if (!usingFastModel) { + // Show the dialog + setFeedbackDialogMessage( + "We don't yet support local models, but we're working on it! If privacy is a concern of yours, please use the feedback button in the bottom right to let us know." + ); + setShowFeedbackDialog(true); + } setUsingFastModel((prev) => !prev); }} - text={usingFastModel ? "gpt-3.5-turbo" : "gpt-4"} + text={usingFastModel ? "local" : "gpt-4"} > <div style={{ fontSize: "18px", marginLeft: "2px", marginRight: "2px" }} > - {usingFastModel ? "⚡" : "🧠"} + {usingFastModel ? "🔒" : "🧠"} </div> </HeaderButtonWithText> <HeaderButtonWithText @@ -625,6 +634,9 @@ function GUI(props: GUIProps) { <HeaderButtonWithText onClick={() => { // Set dialog open + setFeedbackDialogMessage( + "Having trouble using Continue? Want a new feature? Let us know! This box is anonymous, but we will promptly address your feedback." + ); setShowFeedbackDialog(true); }} text="Feedback" |