fix(auth): handle OAuth model alias in retry logic and refine Qwen quota handling
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user