fix: enforced temp chat issue

This commit is contained in:
Timothy Jaeryang Baek committed 2025-06-28 14:01:58 +04:00
1 parent 372836c87c
commit f123d70cff
3 files changed
+17 -2

No files matched your search

+4
View File
@@ -708,6 +708,10 @@
//////////////////////////
const initNewChat = async () => {
if ($user?.permissions?.chat?.temporary_enforced) {
await temporaryChatEnabled.set(true);
}
const availableModels = $models
.filter((m) => !(m?.info?.meta?.hidden ?? false))
.map((m) => m.id);