mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-18 14:17:27 +00:00
feat: 显式指定 error 跳过重试
This commit is contained in:
@@ -45,7 +45,7 @@ func ShouldDisableChannel(channelType int, err *types.NewAPIError) bool {
|
||||
if types.IsChannelError(err) {
|
||||
return true
|
||||
}
|
||||
if types.IsLocalError(err) {
|
||||
if types.IsSkipRetryError(err) {
|
||||
return false
|
||||
}
|
||||
if err.StatusCode == http.StatusUnauthorized {
|
||||
|
||||
Reference in New Issue
Block a user