summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extension/react-app/src/pages/gui.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx
index dfcefdee..96526d6d 100644
--- a/extension/react-app/src/pages/gui.tsx
+++ b/extension/react-app/src/pages/gui.tsx
@@ -129,8 +129,7 @@ function GUI(props: GUIProps) {
// #region Selectors
const history = useSelector((state: RootStore) => state.serverState.history);
const defaultModel = useSelector(
- (state: RootStore) =>
- (state.serverState.config as any).models?.default?.class_name
+ (state: RootStore) => (state.serverState.config as any).models?.default
);
const user_input_queue = useSelector(
(state: RootStore) => state.serverState.user_input_queue
@@ -289,7 +288,8 @@ function GUI(props: GUIProps) {
}
if (
- defaultModel === "OpenAIFreeTrial" &&
+ defaultModel.class_name === "OpenAIFreeTrial" &&
+ defaultModel.api_key === "" &&
(!input.startsWith("/") || input.startsWith("/edit"))
) {
const ftc = localStorage.getItem("ftc");