feat: sync deployed v1.0.0-rc.38-custom.67
This commit is contained in:
1 parent
d09216bbde
commit
8e6ed0317b
154 files changed
+39540
-20509
No files matched your search
+6
-1
@@ -260,7 +260,12 @@ func ListModels(c *gin.Context, modelType int) {
|
||||
tokenModelLimit = map[string]bool{}
|
||||
}
|
||||
}
|
||||
models := service.GetGroupsEnabledModels(ownerGroups)
|
||||
var models []string
|
||||
if policy := service.RequestRoutingPolicy(c); policy != nil && policy.Mode == "smart" {
|
||||
models = service.AutomaticPoolModels(c)
|
||||
} else {
|
||||
models = service.GetGroupsEnabledModels(ownerGroups)
|
||||
}
|
||||
for _, modelName := range models {
|
||||
if modelLimitEnable {
|
||||
matchingName := ratio_setting.RoutingMatchModelName(modelName)
|
||||
|
||||
Reference in new issue
Block a user