fix(video): 火山方舟 - 解耦可信素材并修复音频组合参考 (#302)
This commit is contained in:
@@ -1318,6 +1318,15 @@ test("remote image video and audio references keep Backend parity without Dreami
|
||||
result: { mode: "video", video: { dataUrl: "opaque://video", storageKey: "resource:remote-video-output" } },
|
||||
operation: "reference_to_video",
|
||||
},
|
||||
{
|
||||
mode: "video" as const,
|
||||
references: {
|
||||
referenceImages: [{ id: "remote-image-audio-image-0001", name: "reference.png", type: "image/png", dataUrl: "", storageKey: "resource:remote-image-audio-image-0001" }],
|
||||
referenceAudios: [{ id: "remote-image-audio-audio-0001", name: "reference.mp3", type: "audio/mpeg", url: "", storageKey: "resource:remote-image-audio-audio-0001" }],
|
||||
},
|
||||
result: { mode: "video", video: { dataUrl: "opaque://video", storageKey: "resource:remote-image-audio-output" } },
|
||||
operation: "reference_to_video",
|
||||
},
|
||||
{
|
||||
mode: "audio" as const,
|
||||
references: { referenceAudios: [{ id: "remote-audio-0001", name: "audio.mp3", type: "audio/mpeg", url: "", storageKey: "resource:remote-audio-0001" }] },
|
||||
@@ -1677,7 +1686,7 @@ test("Create audio upload converts, previews, removes, and submits through the s
|
||||
operation?: string;
|
||||
input?: { referenceAudios?: Array<Record<string, unknown>> };
|
||||
};
|
||||
expect(submitted.operation).toBe("reference_to_video");
|
||||
expect(submitted.operation).toBe("audio_to_video");
|
||||
expect(submitted.input?.referenceAudios).toEqual([
|
||||
{
|
||||
id: attachment.id,
|
||||
|
||||
Reference in New Issue
Block a user