fix(auth): handle OAuth model alias in retry logic and refine Qwen quota handling

This commit is contained in:
Luis Pater
2026-04-09 03:44:19 +08:00
parent d54f816363
commit 941334da79
4 changed files with 76 additions and 23 deletions
+5 -1
View File
@@ -1830,7 +1830,11 @@ func (m *Manager) closestCooldownWait(providers []string, model string, attempt
if attempt >= effectiveRetry {
continue
}
blocked, reason, next := isAuthBlockedForModel(auth, model, now)
checkModel := model
if strings.TrimSpace(model) != "" {
checkModel = m.selectionModelForAuth(auth, model)
}
blocked, reason, next := isAuthBlockedForModel(auth, checkModel, now)
if !blocked || next.IsZero() || reason == blockReasonDisabled {
continue
}