|
|
|
@ -88,6 +88,7 @@ describe("popiserver generation provider", () => { |
|
|
|
subType: 203, |
|
|
|
aiPlatform: "GATEWAY", |
|
|
|
origin: "canvas", |
|
|
|
model: "", |
|
|
|
aiModelId: 15, |
|
|
|
aiModelCode: "viduq2-pro", |
|
|
|
aiModelCodeAlias: "viduq2-pro", |
|
|
|
@ -134,6 +135,7 @@ describe("popiserver generation provider", () => { |
|
|
|
const [, init] = vi.mocked(global.fetch).mock.calls[0]; |
|
|
|
expect(JSON.parse(String(init?.body))).toMatchObject({ |
|
|
|
chatPrompt: "比例:16:9\n清晰度:1K\n提示词:create a cinematic cat", |
|
|
|
model: "", |
|
|
|
ratio: "16:9", |
|
|
|
resolution: "1K", |
|
|
|
}); |
|
|
|
@ -174,6 +176,7 @@ describe("popiserver generation provider", () => { |
|
|
|
const [, init] = vi.mocked(global.fetch).mock.calls[0]; |
|
|
|
expect(JSON.parse(String(init?.body))).toMatchObject({ |
|
|
|
chatPrompt: "比例:9:16\n清晰度:2K\n提示词:create a clean product render", |
|
|
|
model: "", |
|
|
|
aspectRatio: "9:16", |
|
|
|
resolution: "2K", |
|
|
|
}); |
|
|
|
@ -196,7 +199,7 @@ describe("popiserver generation provider", () => { |
|
|
|
expect(JSON.parse(String(init?.body))).toEqual({ |
|
|
|
type: 3, |
|
|
|
chatPrompt: "我是一个小白兔,白白的小白兔", |
|
|
|
model: "speech-2.8-hd", |
|
|
|
model: "", |
|
|
|
origin: "canvas", |
|
|
|
aiPlatform: "GATEWAY", |
|
|
|
aiModelId: 30, |
|
|
|
|