增加即梦的生图和生视频功能

This commit is contained in:
andy committed 2026-08-19 17:58:22 +08:00
1 parent a9a4cdf125
commit 542246e4ce
20 files changed
+1008 -53

No files matched your search

@@ -13,6 +13,16 @@ describe("create studio template interaction", () => {
expect(applyTemplate).not.toMatch(/\bsetMode\s*\(/);
expect(applyTemplate).toContain("[generateMode]: template.prompt");
});
it("keeps the effect preview display-only instead of adding it to generation materials", async () => {
const source = await readFile(createStudioUrl, "utf8");
const applyTemplate = functionSource(source, "applyTemplateToConsole", "resetTemplateForm");
const buildBody = functionSource(source, "buildGenerationBody", "submit");
expect(applyTemplate).not.toMatch(/\bsetMaterials\s*\(/);
expect(applyTemplate).not.toContain("previewImageUrl");
expect(buildBody).not.toContain("previewImageUrl");
});
});
function functionSource(source: string, name: string, nextName: string) {