|
|
|
@ -106,10 +106,10 @@ describe("popiserver generation provider", () => { |
|
|
|
aiModelCode: "viduq2-pro", |
|
|
|
aiModelCodeAlias: "viduq2-pro", |
|
|
|
ratio: "16:9", |
|
|
|
aspectRatio: "16:9", |
|
|
|
resolution: "720", |
|
|
|
videoRatio: 10, |
|
|
|
}); |
|
|
|
expect(body.aspectRatio).toBeUndefined(); |
|
|
|
}); |
|
|
|
|
|
|
|
it("returns the prepared PopiServer task request when gateway skip is enabled", async () => { |
|
|
|
@ -316,8 +316,8 @@ describe("popiserver generation provider", () => { |
|
|
|
const body = JSON.parse(String(init?.body)); |
|
|
|
expect(body).toMatchObject({ |
|
|
|
aspect_ratio: "9:16", |
|
|
|
aspectRatio: "9:16", |
|
|
|
}); |
|
|
|
expect(body.aspectRatio).toBeUndefined(); |
|
|
|
}); |
|
|
|
|
|
|
|
it("embeds ratio and resolution in chatPrompt for gpt-image-2-vip", async () => { |
|
|
|
@ -357,6 +357,7 @@ describe("popiserver generation provider", () => { |
|
|
|
expect(body).toMatchObject({ |
|
|
|
chatPrompt: "比例:16:9\n清晰度:1K\n提示词:create a cinematic cat", |
|
|
|
ratio: "16:9", |
|
|
|
aspectRatio: "16:9", |
|
|
|
resolution: "1K", |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -398,9 +399,9 @@ describe("popiserver generation provider", () => { |
|
|
|
expect(body).toMatchObject({ |
|
|
|
chatPrompt: "比例:9:16\n清晰度:2K\n提示词:create a clean product render", |
|
|
|
ratio: "9:16", |
|
|
|
aspectRatio: "9:16", |
|
|
|
resolution: "2K", |
|
|
|
}); |
|
|
|
expect(body.aspectRatio).toBeUndefined(); |
|
|
|
}); |
|
|
|
|
|
|
|
it("uses frontend referenceSubjectList for image tasks", async () => { |
|
|
|
|