diff options
Diffstat (limited to 'extension')
-rw-r--r-- | extension/react-app/src/components/Layout.tsx | 6 | ||||
-rw-r--r-- | extension/react-app/src/pages/models.tsx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/extension/react-app/src/components/Layout.tsx b/extension/react-app/src/components/Layout.tsx index 6dbd348f..93729783 100644 --- a/extension/react-app/src/components/Layout.tsx +++ b/extension/react-app/src/components/Layout.tsx @@ -85,8 +85,7 @@ const Layout = () => { ); const defaultModel = useSelector( - (state: RootStore) => - (state.serverState.config as any).models?.default?.class_name + (state: RootStore) => (state.serverState.config as any).models?.default ); // #region Selectors @@ -185,7 +184,8 @@ const Layout = () => { /> )} <ModelSelect /> - {defaultModel === "OpenAIFreeTrial" && + {defaultModel.class_name === "OpenAIFreeTrial" && + defaultModel.api_key === "" && (location.pathname === "/settings" || parseInt(localStorage.getItem("ftc") || "0") >= 125) && ( <ProgressBar diff --git a/extension/react-app/src/pages/models.tsx b/extension/react-app/src/pages/models.tsx index ea8e28d6..c20d820c 100644 --- a/extension/react-app/src/pages/models.tsx +++ b/extension/react-app/src/pages/models.tsx @@ -35,7 +35,7 @@ const MODEL_INFO: ModelInfo[] = [ title: "Ollama", class: "Ollama", description: - "One of the fastest ways to get started with local models on Mac", + "One of the fastest ways to get started with local models on Mac or Linux", args: { model: "codellama", title: "Ollama", |