mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 09:58:38 +00:00
feat(adaptor): update resolution handling for wan2.6 model
This commit is contained in:
@@ -291,7 +291,9 @@ func (a *TaskAdaptor) convertToAliRequest(info *relaycommon.RelayInfo, req relay
|
|||||||
aliReq.Parameters.Size = "1280*720"
|
aliReq.Parameters.Size = "1280*720"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if strings.HasPrefix(req.Model, "wan2.5") {
|
if strings.HasPrefix(req.Model, "wan2.6") {
|
||||||
|
aliReq.Parameters.Resolution = "1080P"
|
||||||
|
} else if strings.HasPrefix(req.Model, "wan2.5") {
|
||||||
aliReq.Parameters.Resolution = "1080P"
|
aliReq.Parameters.Resolution = "1080P"
|
||||||
} else if strings.HasPrefix(req.Model, "wan2.2-i2v-flash") {
|
} else if strings.HasPrefix(req.Model, "wan2.2-i2v-flash") {
|
||||||
aliReq.Parameters.Resolution = "720P"
|
aliReq.Parameters.Resolution = "720P"
|
||||||
|
|||||||
Reference in New Issue
Block a user