refactor(group): update user group handling to utilize userUsableGroups directly and add GetUserGroupRatio function
This commit is contained in:
1 parent
9db9b6a8ce
commit
758cd2c15f
4 files changed
+15
-3
No files matched your search
@@ -94,6 +94,7 @@ func Distribute() func(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
usingGroup = playgroundRequest.Group
|
||||
common.SetContextKey(c, constant.ContextKeyUsingGroup, usingGroup)
|
||||
}
|
||||
}
|
||||
channel, selectGroup, err = service.CacheGetRandomSatisfiedChannel(c, usingGroup, modelRequest.Model, 0)
|
||||
|
||||
Reference in new issue
Block a user