fix: 请求完成数必须大于等于1
This commit is contained in:
@@ -55,7 +55,7 @@ func CheckModelRequestRateLimitGroup(jsonStr string) error {
|
||||
return err
|
||||
}
|
||||
for group, limits := range checkModelRequestRateLimitGroup {
|
||||
if limits[0] < 0 || limits[1] < 0 {
|
||||
if limits[0] < 0 || limits[1] < 1 {
|
||||
return fmt.Errorf("group %s has negative rate limit values: [%d, %d]", group, limits[0], limits[1])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user