From 97705d147edef9ae673b2c0bd200b9f8b0558b7a Mon Sep 17 00:00:00 2001 From: Kayokoi <113896798+wozhenbang2004@users.noreply.github.com> Date: Thu, 12 Nov 2026 08:43:27 -0800 Subject: [PATCH] fix(accounts): reject wildcard model whitelist entries Prevent adding models with wildcard characters and show an info message. --- frontend/src/components/account/ModelWhitelistSelector.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/components/account/ModelWhitelistSelector.vue b/frontend/src/components/account/ModelWhitelistSelector.vue index b1645a49fa..16788af018 100644 --- a/frontend/src/components/account/ModelWhitelistSelector.vue +++ b/frontend/src/components/account/ModelWhitelistSelector.vue @@ -278,6 +278,10 @@ const copyModelId = async (model: string) => { const addCustom = () => { const model = customModel.value.trim() if (!model) return + if (model.includes('*')) { + appStore.showInfo(t('admin.accounts.modelWildcardNotSupported')) + return + } if (props.modelValue.includes(model)) { appStore.showInfo(t('admin.accounts.modelExists')) return