增加即梦的生图和生视频功能
This commit is contained in:
1 parent
a9a4cdf125
commit
542246e4ce
20 files changed
+1008
-53
No files matched your search
@@ -54,10 +54,10 @@ describe("task management and public API helpers", () => {
|
||||
delete process.env.ALI_OSS_PUBLIC_BASE_URL;
|
||||
vi.stubGlobal("fetch", vi.fn(async (input: RequestInfo | URL) => {
|
||||
const target = String(input);
|
||||
if (target.includes("CVSync2AsyncSubmitTask")) {
|
||||
if (target.includes("JimengSeedream46CVToBSubmitTask")) {
|
||||
return new Response(JSON.stringify({ code: 10000, data: { task_id: "visual-task-1" } }), { status: 200, headers: { "Content-Type": "application/json" } });
|
||||
}
|
||||
if (target.includes("CVSync2AsyncGetResult")) {
|
||||
if (target.includes("JimengSeedream46CVToBGetResult")) {
|
||||
return new Response(JSON.stringify({ code: 10000, data: { status: "done", image_urls: ["https://cdn.test/result.png"] } }), { status: 200, headers: { "Content-Type": "application/json" } });
|
||||
}
|
||||
if (target === "https://cdn.test/result.png") {
|
||||
|
||||
Reference in new issue
Block a user