diff --git a/data/vendor/toonflow.ts b/data/vendor/toonflow.ts index 3065d0d..7f375e0 100644 --- a/data/vendor/toonflow.ts +++ b/data/vendor/toonflow.ts @@ -139,7 +139,7 @@ const vendor: VendorConfig = { description: "## Toonflow官方中转平台\n\nToonflow官方中转平台,提供**文本、图像、视频、音频**等多模态生成能力的中转服务,支持接入多个大模型供应商,方便用户统一管理和调用不同供应商的生成能力。\n\n🔗 [前往中转平台](https://api.toonflow.net/)\n\n如果这个项目对你有帮助,可以考虑支持一下我们的开发工作 ☕", icon: "", - inputs: [{ key: "apiKey", label: "API密钥", type: "password", required: true },{ key: "baseUrl", label: "API密钥", type: "password", required: true }], + inputs: [{ key: "apiKey", label: "API密钥", type: "password", required: true }], inputValues: { apiKey: "", baseUrl: "https://api.toonflow.net/v1", @@ -337,10 +337,7 @@ const videoRequest = async (config: VideoConfig, model: VideoModel): Promise= 2 - ) { + if ((activeMode === "startEndRequired" || activeMode === "endFrameOptional" || activeMode === "startFrameOptional") && imageRefs.length >= 2) { if (imageRefs[0]) metadata.first_frame_url = imageRefs[0]; if (imageRefs[1]) metadata.last_frame_url = imageRefs[1]; } else if (imageRefs.length) { @@ -519,4 +516,4 @@ exports.ttsRequest = ttsRequest; exports.checkForUpdates = checkForUpdates; exports.updateVendor = updateVendor; -export {}; \ No newline at end of file +export {};