fix: 🐛 ftc fix
This commit is contained in:
parent
51fc07cf64
commit
f5f10efee3
1 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue