Restore standard MiniMax resolutions and client mapping

This commit is contained in:
2026-06-08 09:29:45 +08:00
parent ca5e71c8e8
commit 97f29ed156
8 changed files with 587 additions and 4 deletions
+13
View File
@@ -323,6 +323,19 @@ func weightValueAliases(key string, name string) []string {
return nil
}
switch key {
case "resolutionWeights":
aliases := []string{name}
lower := strings.ToLower(name)
if lower != name {
aliases = append(aliases, lower)
}
if strings.HasSuffix(lower, "p") {
aliases = append(aliases, strings.TrimSuffix(lower, "p")+"P")
}
if lower == "768p" {
aliases = append(aliases, "720p")
}
return aliases
case "audioWeights":
return []string{name, "audio-" + name}
case "referenceVideoWeights":