fix: channel auto ban #443

This commit is contained in:
CalciumIon 2024-08-24 17:23:24 +08:00
parent a8ac8a25d5
commit ff0985f06e

View File

@ -54,6 +54,8 @@ func ShouldDisableChannel(channelType int, err *relaymodel.OpenAIErrorWithStatus
switch err.Error.Type {
case "insufficient_quota":
return true
case "insufficient_user_quota":
return true
// https://docs.anthropic.com/claude/reference/errors
case "authentication_error":
return true