mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +08:00
fix: channel auto ban #443
This commit is contained in:
parent
a8ac8a25d5
commit
ff0985f06e
@ -54,6 +54,8 @@ func ShouldDisableChannel(channelType int, err *relaymodel.OpenAIErrorWithStatus
|
|||||||
switch err.Error.Type {
|
switch err.Error.Type {
|
||||||
case "insufficient_quota":
|
case "insufficient_quota":
|
||||||
return true
|
return true
|
||||||
|
case "insufficient_user_quota":
|
||||||
|
return true
|
||||||
// https://docs.anthropic.com/claude/reference/errors
|
// https://docs.anthropic.com/claude/reference/errors
|
||||||
case "authentication_error":
|
case "authentication_error":
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user