Merge branch 'develop' of https://github.com/HBAI-Ltd/Toonflow-app into develop

This commit is contained in:
ACT丶流星雨
2026-06-08 20:05:13 +08:00
3 changed files with 29 additions and 18 deletions

39
data/vendor/toonflow.ts generated vendored
View File

@@ -145,22 +145,6 @@ const vendor: VendorConfig = {
baseUrl: "https://api.toonflow.net/v1",
},
models: [
{
name: "Wan2.6",
type: "video",
modelName: "wan2.6",
mode: ["singleImage"],
durationResolutionMap: [{ duration: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], resolution: ["720p", "1080p"] }],
audio: true,
},
{
name: "Seedance 1.5 Pro",
type: "video",
modelName: "doubao-seedance-1-5-pro",
mode: ["text", "endFrameOptional"],
durationResolutionMap: [{ duration: [4, 5, 6, 7, 8, 9, 10, 11, 12], resolution: ["480p", "720p", "1080p"] }],
audio: true,
},
{
name: "Seedance-2.0 (支持真人)",
modelName: "Seedance 2.0",
@@ -177,6 +161,22 @@ const vendor: VendorConfig = {
audio: "optional",
durationResolutionMap: [{ duration: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], resolution: ["480p", "720p"] }],
},
{
name: "Wan2.6",
type: "video",
modelName: "wan2.6",
mode: ["singleImage"],
durationResolutionMap: [{ duration: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], resolution: ["720p", "1080p"] }],
audio: true,
},
{
name: "Seedance 1.5 Pro",
type: "video",
modelName: "doubao-seedance-1-5-pro",
mode: ["text", "endFrameOptional"],
durationResolutionMap: [{ duration: [4, 5, 6, 7, 8, 9, 10, 11, 12], resolution: ["480p", "720p", "1080p"] }],
audio: true,
},
{
name: "ViduQ3 pro",
type: "video",
@@ -213,6 +213,13 @@ const vendor: VendorConfig = {
modelName: "doubao-seedream-4-5",
mode: ["text", "singleImage", "multiReference"],
},
{
name: "全能图片G-2.0",
type: "image",
modelName: "全能图片G-2.0",
mode: ["text", "singleImage", "multiReference"],
},
// { name: "DeepSeek v4 pro", modelName: "deepseek-v4-pro", type: "text", think: false },
],
};

View File

@@ -179,13 +179,17 @@ export default async (knex: Knex): Promise<void> => {
await dropColumn("o_vendorConfig", "createTime");
const volcengineVer = await u.vendor.getVendor("volcengine").version;
if (Number(volcengineVer) < 2.3) {
if (Number(volcengineVer) < 2.4) {
u.vendor.writeCode("volcengine", vendorData["volcengine.ts"]);
}
const minimaxVer = await u.vendor.getVendor("minimax").version;
if (Number(minimaxVer) < 2.1) {
u.vendor.writeCode("minimax", vendorData["minimax.ts"]);
}
const toonflowVer = await u.vendor.getVendor("toonflow").version;
if (Number(toonflowVer) < 3.2) {
u.vendor.writeCode("toonflow", vendorData["toonflow.ts"]);
}
};
async function tempOnsert(tsCode: string) {

File diff suppressed because one or more lines are too long