refactor(group): update user group handling to utilize userUsableGroups directly and add GetUserGroupRatio function

This commit is contained in:
CaIon
2025-10-30 21:16:42 +08:00
parent 9db9b6a8ce
commit 758cd2c15f
4 changed files with 15 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ func Playground(c *gin.Context) {
return
}
group := c.GetString("group")
group := common.GetContextKeyString(c, constant.ContextKeyUsingGroup)
modelName := c.GetString("original_model")
userId := c.GetInt("id")