diff --git a/frontend/src/components/account/CreateAccountModal.vue b/frontend/src/components/account/CreateAccountModal.vue index 41e29908..23f1efbf 100644 --- a/frontend/src/components/account/CreateAccountModal.vue +++ b/frontend/src/components/account/CreateAccountModal.vue @@ -1575,9 +1575,9 @@ - +
@@ -1627,58 +1627,6 @@ />
- -
-
-

{{ t('admin.accounts.quotaControl.title') }}

-

- {{ t('admin.accounts.quotaLimitHint') }} -

-
- -
-
{ credentials.pool_mode_retry_count = normalizePoolModeRetryCount(poolModeRetryCount.value) } + // Add custom error codes if enabled + if (customErrorCodesEnabled.value) { + credentials.custom_error_codes_enabled = true + credentials.custom_error_codes = [...selectedErrorCodes.value] + } + applyInterceptWarmup(credentials, interceptWarmupRequests.value, 'create') if (!applyTempUnschedConfig(credentials)) { return @@ -4574,9 +4528,9 @@ const createAccountAndFinish = async ( if (!applyTempUnschedConfig(credentials)) { return } - // Inject quota limits for apikey/bedrock accounts + // Inject quota limits for apikey/bedrock/cli accounts let finalExtra = extra - if (type === 'apikey' || type === 'bedrock') { + if (type === 'apikey' || type === 'bedrock' || type === 'cli') { const quotaExtra: Record = { ...(extra || {}) } if (editQuotaLimit.value != null && editQuotaLimit.value > 0) { quotaExtra.quota_limit = editQuotaLimit.value diff --git a/frontend/src/components/account/EditAccountModal.vue b/frontend/src/components/account/EditAccountModal.vue index dff45929..6b337498 100644 --- a/frontend/src/components/account/EditAccountModal.vue +++ b/frontend/src/components/account/EditAccountModal.vue @@ -1311,9 +1311,9 @@
- +
@@ -1362,9 +1362,9 @@ @update:quotaNotifyTotalThresholdType="quotaNotifyState.total.thresholdType = $event" />
- +
@@ -2351,8 +2351,8 @@ const syncFormFromAccount = (newAccount: Account | null) => { } } - // Load quota limit for apikey/bedrock accounts (bedrock quota is also loaded in its own branch above) - if (newAccount.type === 'apikey' || newAccount.type === 'bedrock') { + // Load quota limit for apikey/bedrock/cli accounts + if (newAccount.type === 'apikey' || newAccount.type === 'bedrock' || newAccount.type === 'cli') { const quotaVal = extra?.quota_limit as number | undefined editQuotaLimit.value = (quotaVal && quotaVal > 0) ? quotaVal : null const dailyVal = extra?.quota_daily_limit as number | undefined @@ -3440,8 +3440,8 @@ const handleSubmit = async () => { updatePayload.extra = newExtra } - // For apikey/bedrock accounts, handle quota_limit in extra - if (props.account.type === 'apikey' || props.account.type === 'bedrock') { + // For apikey/bedrock/cli accounts, handle quota_limit in extra + if (props.account.type === 'apikey' || props.account.type === 'bedrock' || props.account.type === 'cli') { const currentExtra = (updatePayload.extra as Record) || (props.account.extra as Record) || {} const newExtra: Record = { ...currentExtra } diff --git a/frontend/src/views/admin/GroupsView.vue b/frontend/src/views/admin/GroupsView.vue index 6b35663b..bed3aeb6 100644 --- a/frontend/src/views/admin/GroupsView.vue +++ b/frontend/src/views/admin/GroupsView.vue @@ -2783,6 +2783,7 @@ const platformOptions = computed(() => [ { value: "openai", label: "OpenAI" }, { value: "gemini", label: "Gemini" }, { value: "antigravity", label: "Antigravity" }, + { value: "kimi", label: "Kimi" }, ]); const platformFilterOptions = computed(() => [ @@ -2791,6 +2792,7 @@ const platformFilterOptions = computed(() => [ { value: "openai", label: "OpenAI" }, { value: "gemini", label: "Gemini" }, { value: "antigravity", label: "Antigravity" }, + { value: "kimi", label: "Kimi" }, ]); const editStatusOptions = computed(() => [