Merge branch 'develop'
This commit is contained in:
commit
e1cd187d3a
9
data/vendor/toonflow.ts
vendored
9
data/vendor/toonflow.ts
vendored
@ -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<str
|
||||
|
||||
if (lowerName.includes("wan")) {
|
||||
// 万象系列
|
||||
if (
|
||||
(activeMode === "startEndRequired" || activeMode === "endFrameOptional" || activeMode === "startFrameOptional") &&
|
||||
imageRefs.length >= 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 {};
|
||||
export {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user