This commit is contained in:
Timothy Jaeryang Baek
2025-02-12 01:22:53 -08:00
parent 431e97b03a
commit 0bec9122c1
17 changed files with 211 additions and 47 deletions

View File

@@ -111,7 +111,12 @@
}
}
_models.set(await getModels(localStorage.token, $settings?.directConnections ?? null));
_models.set(
await getModels(
localStorage.token,
$config?.features?.enable_direct_connetions && ($settings?.directConnections ?? null)
)
);
await init();
};
@@ -133,7 +138,12 @@
}
// await init();
_models.set(await getModels(localStorage.token, $settings?.directConnections ?? null));
_models.set(
await getModels(
localStorage.token,
$config?.features?.enable_direct_connetions && ($settings?.directConnections ?? null)
)
);
};
onMount(async () => {
@@ -331,7 +341,11 @@
}
await _models.set(
await getModels(localStorage.token, $settings?.directConnections ?? null)
await getModels(
localStorage.token,
$config?.features?.enable_direct_connetions &&
($settings?.directConnections ?? null)
)
);
init();
};