Browse Source

fix: request record redis key (#198)

zijiren 7 months ago
parent
commit
d1583a534c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/common/reqlimit/main.go

+ 1 - 1
core/common/reqlimit/main.go

@@ -62,7 +62,7 @@ func GetGroupModelTokennameRequest(ctx context.Context, group, model, tokenname
 		tokenname = "*"
 	}
 	if common.RedisEnabled {
-		totalCount, secondCount, err := redisGroupModelTokennameLimiter.GetRequest(ctx, time.Minute, group, model)
+		totalCount, secondCount, err := redisGroupModelTokennameLimiter.GetRequest(ctx, time.Minute, group, model, tokenname)
 		if err == nil {
 			return totalCount, secondCount
 		}