增加即梦图片5.0和视频2.5的能力
This commit is contained in:
1 parent
542246e4ce
commit
88a4268d40
55 files changed
+1412
-200
No files matched your search
@@ -4,7 +4,7 @@ import { describe, expect, it } from "vitest";
|
||||
describe("Go provider adapter contract", () => {
|
||||
it("freezes bounded adapters and safe errors", async () => {
|
||||
const contract = JSON.parse(await readFile(new URL("../contracts/providers/http-v1.json", import.meta.url), "utf8"));
|
||||
expect(Object.keys(contract.providers)).toEqual(["volcengine-visual", "evolink", "bailian", "seedance"]);
|
||||
expect(Object.keys(contract.providers)).toEqual(["volcengine-visual", "evolink", "bailian", "seedance", "seedream"]);
|
||||
expect(contract.providers["volcengine-visual"]).toMatchObject({
|
||||
model: "jimeng_seedream46_cvtob",
|
||||
submitAction: "JimengSeedream46CVToBSubmitTask",
|
||||
@@ -13,11 +13,29 @@ describe("Go provider adapter contract", () => {
|
||||
});
|
||||
expect(contract.providers.seedance).toMatchObject({
|
||||
model: "doubao-seedance-2-0-260128",
|
||||
models: ["doubao-seedance-2-0-260128", "doubao-seedance-2-5-260628"],
|
||||
submit: "/contents/generations/tasks",
|
||||
query: "/contents/generations/tasks/{id}",
|
||||
maxMaterials: 4,
|
||||
maxMaterials: {
|
||||
"doubao-seedance-2-0-260128": 4,
|
||||
"doubao-seedance-2-5-260628": 50
|
||||
},
|
||||
maxDurationSeconds: {
|
||||
"doubao-seedance-2-0-260128": 15,
|
||||
"doubao-seedance-2-5-260628": 30
|
||||
},
|
||||
resolutions: ["480p", "720p", "1080p"]
|
||||
});
|
||||
expect(contract.providers.seedream).toMatchObject({
|
||||
model: "doubao-seedream-5-0-pro-260628",
|
||||
submit: "/images/generations",
|
||||
auth: "bearer",
|
||||
synchronous: true,
|
||||
maxReferenceImages: 10,
|
||||
sizes: ["1K", "1.5K", "2K"],
|
||||
outputFormats: ["png", "jpeg"],
|
||||
optimizeModes: ["standard", "fast"]
|
||||
});
|
||||
expect(contract.errors).toEqual({ generic: true, secretSafe: true });
|
||||
expect(contract.liveCallsInTests).toBe(false);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user