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

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

+2 -2
View File
@@ -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") {