feat(canvas): 视频参数 - 支持自定义时长并统一分辨率与设置面板

This commit is contained in:
ddCat committed 2026-07-31 17:16:43 +08:00
1 parent 7dd2a5881b
commit 98aad91d5f
8 files changed
+63 -51

No files matched your search

+1 -1
View File
@@ -527,7 +527,7 @@ func TestXAIVideoBodyUsesOfficialImageShapeAndNormalizesSettings(t *testing.T) {
if err != nil {
t.Fatalf("grokVideoBody() error = %v", err)
}
if body["duration"] != 15 || body["aspect_ratio"] != "9:16" || body["resolution"] != "1080p" {
if body["duration"] != 20 || body["aspect_ratio"] != "9:16" || body["resolution"] != "1080p" {
t.Fatalf("xAI settings = %#v", body)
}
image, ok := body["image"].(map[string]interface{})