feat: add xai video model
This commit is contained in:
@@ -127,6 +127,24 @@ export const VIDEO_MODELS = [
|
||||
defaultResolution: '720p',
|
||||
defaultParams: { ratio: '720x1280', duration: 10, resolution: '720p' }
|
||||
},
|
||||
{
|
||||
label: 'Grok Imagine Video',
|
||||
key: 'xai',
|
||||
provider: ['chatfire'],
|
||||
type: 't2v+i2v',
|
||||
ratios: ['720x1280', '1280x720', '1024x1024'],
|
||||
durs: [
|
||||
{ label: '5 秒', key: 5 },
|
||||
{ label: '8 秒', key: 8 },
|
||||
{ label: '10 秒', key: 10 },
|
||||
{ label: '12 秒', key: 12 },
|
||||
{ label: '15 秒', key: 15 }
|
||||
],
|
||||
resolutions: ['480p', '720p'],
|
||||
defaultResolution: '720p',
|
||||
defaultParams: { ratio: '720x1280', duration: 8, resolution: '720p' },
|
||||
available: false
|
||||
},
|
||||
{
|
||||
label: 'Seedance 2.0 高清',
|
||||
key: 'seedance_hd',
|
||||
|
||||
@@ -460,11 +460,7 @@ export const useModelStore = defineStore('model', () => {
|
||||
.filter(Boolean)
|
||||
const videoOptions = data?.models?.video_options || []
|
||||
runtimeVideoModels.value = videoOptions
|
||||
.filter(item => {
|
||||
const id = String(item?.id || '').toLowerCase()
|
||||
const model = String(item?.model || '').toLowerCase()
|
||||
return id.includes('seedance') || model.includes('seedance')
|
||||
})
|
||||
.filter(item => item?.id && item.available !== false)
|
||||
.map(normalizeRuntimeVideoModel)
|
||||
.filter(Boolean)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user