feat(short-drama-agent-front): 完善镜头定位与项目配置

This commit is contained in:
GJ committed 2026-10-08 19:45:26 +08:00
1 parent 470b52e26d
commit 5b134207b8
66 files changed
+2042 -984

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
import type { CreativeProfile, GenerationModelCatalog } from '@/features/generation-config/types'
/** 模拟后端图片目录,只开放该模型支持的尺寸枚举。 */
export const imageCatalog: GenerationModelCatalog = {
defaults: { imageProvider: 'qwen-image', videoProvider: 'seedance' },
images: [
{
type: 'image',
provider: 'qwen-image',
providerLabel: 'Qwen',
model: 'qwen-image-3.0-pro',
modelLabel: 'Qwen Image',
supported: true,
enabled: true,
isDefault: true,
capabilities: {},
generationOptions: [
{
key: 'size',
label: '图片尺寸',
type: 'size',
required: true,
options: [{ label: '1:1 · 2048×2048', value: '2048*2048' }]
}
],
defaults: { size: '2048*2048' },
projectConstraints: []
}
],
videos: []
}
/**
* 构造与目录一致的正式项目生成配置。
* @param projectId 当前正式项目 ID
* @returns 项目画布、模型和有限尺寸参数
*/
export function generationProfile(projectId: string): CreativeProfile {
return {
projectId,
aspectRatio: '1:1',
imageProvider: 'qwen-image',
imageModel: 'qwen-image-3.0-pro',
imageOptions: { size: '2048*2048' },
videoProvider: 'seedance',
videoModel: 'seedance',
videoOptions: {}
}
}