diff options
| author | Nate Sesti <sestinj@gmail.com> | 2023-07-02 20:15:36 -0700 | 
|---|---|---|
| committer | Nate Sesti <sestinj@gmail.com> | 2023-07-02 20:15:36 -0700 | 
| commit | 0a812994703791023125177fe4820202374e45b0 (patch) | |
| tree | 7559fe0d9500d5156fa99ee5614ac0fe6d4e88f3 /extension/react-app/src/tabs | |
| parent | a606c13ca75f0c9177b3d04f20dcf7211d81f083 (diff) | |
| parent | 0ffd2648d679916872c681036a68741a83d80c0e (diff) | |
| download | sncontinue-0a812994703791023125177fe4820202374e45b0.tar.gz sncontinue-0a812994703791023125177fe4820202374e45b0.tar.bz2 sncontinue-0a812994703791023125177fe4820202374e45b0.zip | |
Merge branch 'main' into explicit-context
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 658aa503..e0b32a24 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -103,6 +103,7 @@ function GUI(props: GUIProps) {    } as any);    const [showFeedbackDialog, setShowFeedbackDialog] = useState(false); +  const [feedbackDialogMessage, setFeedbackDialogMessage] = useState("");    const topGuiDivRef = useRef<HTMLDivElement>(null);    const client = useContinueGUIProtocol(); @@ -259,6 +260,7 @@ function GUI(props: GUIProps) {          onClose={() => {            setShowFeedbackDialog(false);          }} +        message={feedbackDialogMessage}        ></TextDialog>        <TopGUIDiv @@ -396,17 +398,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 @@ -428,6 +437,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" | 
