Merge pull request #1401 from feitianbubu/pr/add-qwen-channel-auto-disabled
feat: add qwen channel auto disabled
This commit is contained in:
@@ -75,6 +75,8 @@ func ShouldDisableChannel(channelType int, err *types.NewAPIError) bool {
|
|||||||
return true
|
return true
|
||||||
case "pre_consume_token_quota_failed":
|
case "pre_consume_token_quota_failed":
|
||||||
return true
|
return true
|
||||||
|
case "Arrearage":
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
switch oaiErr.Type {
|
switch oaiErr.Type {
|
||||||
case "insufficient_quota":
|
case "insufficient_quota":
|
||||||
|
|||||||
Reference in New Issue
Block a user