Restore standard MiniMax resolutions and client mapping
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user