diff --git a/data/vendor/klingai.ts b/data/vendor/klingai.ts index 103eb55..85bd70a 100644 --- a/data/vendor/klingai.ts +++ b/data/vendor/klingai.ts @@ -143,7 +143,7 @@ const vendor: VendorConfig = { { key: "secretKey", label: "Secret Key", type: "password", required: true, placeholder: "请输入可灵AI的Secret Key" }, { key: "baseUrl", label: "请求地址", type: "url", required: true, placeholder: "默认:https://api-beijing.klingai.com" }, ], - inputValues: { accessKey: "", secretKey: "", baseUrl: "https://api-beijing.klingai.com" }, + inputValues: { accessKey: "", secretKey: "", apiKey: "可灵接口采用AK+SK模式", baseUrl: "https://api-beijing.klingai.com" }, models: [ // kling-video-o1 (Omni) { @@ -465,7 +465,7 @@ const videoRequest = async (config: VideoConfig, model: VideoModel): Promise Array.isArray(m)); + const hasMultiRef = Array.isArray(currentMode) && currentMode.some((m) => Array.isArray(m)); // 提取不同类型的引用 const imageRefs = (config.referenceList || []).filter((r) => r.type === "image"); @@ -635,4 +635,4 @@ exports.videoRequest = videoRequest; exports.ttsRequest = ttsRequest; // 这行代码用于确保当前文件被识别为模块,避免全局变量冲突 -export {}; \ No newline at end of file +export {};