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 | 738a150a2c5503721e3bc75bd3fdc25590513883 (patch) | |
tree | aecf17927b3ba4eb0652795ed4791d784e9343a0 /extension | |
parent | bad7fc4bd0280a7ec0586eed955911a10c16eb01 (diff) | |
download | sncontinue-738a150a2c5503721e3bc75bd3fdc25590513883.tar.gz sncontinue-738a150a2c5503721e3bc75bd3fdc25590513883.tar.bz2 sncontinue-738a150a2c5503721e3bc75bd3fdc25590513883.zip |
no more gpt-3.5-turbo
Diffstat (limited to 'extension')
-rw-r--r-- | extension/react-app/src/components/TextDialog.tsx | 3 | ||||
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 22 |
2 files changed, 19 insertions, 6 deletions
diff --git a/extension/react-app/src/components/TextDialog.tsx b/extension/react-app/src/components/TextDialog.tsx index 2632e572..a564f884 100644 --- a/extension/react-app/src/components/TextDialog.tsx +++ b/extension/react-app/src/components/TextDialog.tsx @@ -52,6 +52,7 @@ const TextDialog = (props: { showDialog: boolean; onEnter: (text: string) => void; onClose: () => void; + message?: string; }) => { const [text, setText] = useState(""); const textAreaRef = React.createRef<HTMLTextAreaElement>(); @@ -75,7 +76,7 @@ const TextDialog = (props: { }} > <Dialog> - <P>Thanks for your feedback. We'll get back to you soon!</P> + <P>{props.message || ""}</P> <TextArea rows={10} ref={textAreaRef} 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" |