功能增加
This commit is contained in:
1 parent
b340fc7ad7
commit
f1993eb388
69 files changed
+2243
-162
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", "seedream"]);
|
||||
expect(Object.keys(contract.providers)).toEqual(["volcengine-visual", "evolink", "bailian", "seedance", "seedream", "minimax"]);
|
||||
expect(contract.providers["volcengine-visual"]).toMatchObject({
|
||||
model: "jimeng_seedream46_cvtob",
|
||||
submitAction: "JimengSeedream46CVToBSubmitTask",
|
||||
@@ -36,6 +36,15 @@ describe("Go provider adapter contract", () => {
|
||||
outputFormats: ["png", "jpeg"],
|
||||
optimizeModes: ["standard", "fast"]
|
||||
});
|
||||
expect(contract.providers.minimax).toMatchObject({
|
||||
model: "MiniMax-H3",
|
||||
submit: "/v2/video_generation",
|
||||
query: "/v2/query/video_generation/{id}",
|
||||
modes: ["text-to-video", "first-frame-to-video"],
|
||||
maxMaterials: 1,
|
||||
durationSeconds: { min: 4, max: 15 },
|
||||
resolutions: ["768P", "2K"]
|
||||
});
|
||||
expect(contract.errors).toEqual({ generic: true, secretSafe: true });
|
||||
expect(contract.liveCallsInTests).toBe(false);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user