Files

50 lines
1.5 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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: {}
}
}