fix(models): 模型目录 - 保留人工能力并按声明发送视频分辨率

This commit is contained in:
ddCat committed 2026-08-17 12:56:51 +08:00
1 parent 050a95c1d5
commit c2352fd9b6
11 files changed
+218 -48

No files matched your search

+4 -1
View File
@@ -1973,7 +1973,10 @@ func newAPIChannel2VideoRequestBody(input canvasGenerationInput) (newAPIVideoReq
seconds = 6
}
ratio := normalizeNewAPIChannel2Ratio(input.Config.Size, modelName)
resolution := normalizeNewAPIChannel2Resolution(input.Config.VQuality, modelName)
resolution := videoResolutionNameRequest(input.VideoCapability, input.Config.VQuality)
if modelName == "grok-video-1.5-1080p" {
resolution = "1080p"
}
body := newAPIVideoRequest{
Model: input.Config.Model,
Prompt: strings.TrimSpace(input.Prompt),