瀏覽代碼

fix: channel auto ban #443

CalciumIon 1 年之前
父節點
當前提交
ff0985f06e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      service/channel.go

+ 2 - 0
service/channel.go

@@ -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