mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-13 04:29:50 +08:00
fix(pool): honor quota exhaustion toggle and default ignore to off
This commit is contained in:
@@ -591,7 +591,7 @@ const form = ref({
|
||||
account_self_check_concurrency: null as number | null | undefined,
|
||||
auto_remove_banned_keys: false,
|
||||
auto_remove_quota_exhausted_keys: false,
|
||||
skip_exhausted_accounts: false,
|
||||
ignore_exhausted_accounts: false,
|
||||
})
|
||||
|
||||
interface ClaudeFormState {
|
||||
@@ -630,8 +630,8 @@ function getHealthToggleValue(key: PoolHealthToggleKey): boolean {
|
||||
return form.value.auto_remove_banned_keys
|
||||
case 'auto_remove_quota_exhausted_keys':
|
||||
return form.value.auto_remove_quota_exhausted_keys
|
||||
case 'skip_exhausted_accounts':
|
||||
return form.value.skip_exhausted_accounts
|
||||
case 'ignore_exhausted_accounts':
|
||||
return form.value.ignore_exhausted_accounts
|
||||
}
|
||||
}
|
||||
|
||||
@@ -649,8 +649,8 @@ function updateHealthToggleValue(key: PoolHealthToggleKey, value: boolean): void
|
||||
case 'auto_remove_quota_exhausted_keys':
|
||||
form.value.auto_remove_quota_exhausted_keys = value
|
||||
return
|
||||
case 'skip_exhausted_accounts':
|
||||
form.value.skip_exhausted_accounts = value
|
||||
case 'ignore_exhausted_accounts':
|
||||
form.value.ignore_exhausted_accounts = value
|
||||
}
|
||||
}
|
||||
|
||||
@@ -686,7 +686,7 @@ watch([() => props.modelValue, () => props.providerId], ([open]) => {
|
||||
account_self_check_concurrency: cfg?.account_self_check_concurrency ?? null,
|
||||
auto_remove_banned_keys: cfg?.auto_remove_banned_keys ?? false,
|
||||
auto_remove_quota_exhausted_keys: cfg?.auto_remove_quota_exhausted_keys ?? false,
|
||||
skip_exhausted_accounts: cfg?.skip_exhausted_accounts ?? false,
|
||||
ignore_exhausted_accounts: cfg?.ignore_exhausted_accounts ?? false,
|
||||
}
|
||||
|
||||
const cc = props.currentClaudeConfig
|
||||
@@ -754,7 +754,7 @@ async function handleSave() {
|
||||
: undefined,
|
||||
auto_remove_banned_keys: form.value.auto_remove_banned_keys,
|
||||
auto_remove_quota_exhausted_keys: form.value.auto_remove_quota_exhausted_keys,
|
||||
skip_exhausted_accounts: form.value.skip_exhausted_accounts,
|
||||
ignore_exhausted_accounts: form.value.ignore_exhausted_accounts,
|
||||
})
|
||||
|
||||
const payload: Parameters<typeof updateProvider>[1] = {
|
||||
|
||||
Reference in New Issue
Block a user