fix: enforced temp chat issue

This commit is contained in:
Timothy Jaeryang Baek
2025-06-28 14:01:58 +04:00
parent 372836c87c
commit f123d70cff
3 changed files with 17 additions and 2 deletions
+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);