feat(channel): add handling for pre_consume_token_quota_failed error type

This commit is contained in:
CaIon
2025-06-17 16:46:52 +08:00
parent 51757b83e1
commit 4d8e63bd1a

View File

@@ -59,6 +59,8 @@ func ShouldDisableChannel(channelType int, err *dto.OpenAIErrorWithStatusCode) b
return true
case "billing_not_active":
return true
case "pre_consume_token_quota_failed":
return true
}
switch err.Error.Type {
case "insufficient_quota":