v1.4.19: AI视频两步生成文案 + 模型默认值/免费注册引导
This commit is contained in:
1 parent
9c7b695081
commit
71c5d25862
7 files changed
+160
-22
No files matched your search
@@ -33,12 +33,13 @@ const DEFAULTS = {
|
||||
}
|
||||
},
|
||||
// AI 视频:一句话/文本/网页/文档 → 带字幕配音的成片
|
||||
// provider='inherit' 复用上面的 AI 生图配置;'custom' 用下面自定义的文本模型
|
||||
// provider='custom' 用下面的文本模型(默认指向 ai.88531.cn,免费注册领额度);
|
||||
// 'inherit' 复用上面的 AI 生图配置
|
||||
videoai: {
|
||||
provider: 'inherit',
|
||||
provider: 'custom',
|
||||
custom: {
|
||||
url: '',
|
||||
model: '',
|
||||
url: 'https://ai.88531.cn/v1',
|
||||
model: 'mimo-v2.6-flash',
|
||||
apiKey: ''
|
||||
}
|
||||
}
|
||||
@@ -78,10 +79,12 @@ function getSettings() {
|
||||
}
|
||||
},
|
||||
videoai: {
|
||||
provider: (data.videoai && data.videoai.provider) === 'custom' ? 'custom' : 'inherit',
|
||||
provider: data.videoai
|
||||
? (data.videoai.provider === 'inherit' ? 'inherit' : 'custom')
|
||||
: DEFAULTS.videoai.provider,
|
||||
custom: {
|
||||
url: (data.videoai && data.videoai.custom && data.videoai.custom.url) || '',
|
||||
model: (data.videoai && data.videoai.custom && data.videoai.custom.model) || '',
|
||||
url: (data.videoai && data.videoai.custom && data.videoai.custom.url) || DEFAULTS.videoai.custom.url,
|
||||
model: (data.videoai && data.videoai.custom && data.videoai.custom.model) || DEFAULTS.videoai.custom.model,
|
||||
apiKey: (data.videoai && data.videoai.custom && data.videoai.custom.apiKey) || ''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user