auto-save 2026-05-27 17:18 (~9)

This commit is contained in:
2026-05-27 17:18:45 +08:00
parent 8999fe0baf
commit 9ab541796b
9 changed files with 420 additions and 243 deletions

View File

@@ -11,6 +11,16 @@ export const SEEDREAM_SIZE_OPTIONS = [
{ label: '横图 3:2', key: '1536x1024' }
]
export const ARK_SEEDREAM_SIZE_OPTIONS = [
{ label: '自动 2K', key: '2K' },
{ label: '方图 2048', key: '2048x2048' },
{ label: '竖图 9:16', key: '1440x2560' },
{ label: '横图 16:9', key: '2560x1440' },
{ label: '方图 2160', key: '2160x2160' },
{ label: '竖图 4K', key: '2160x3840' },
{ label: '横图 4K', key: '3840x2160' }
]
// Kept for compatibility with upstream model helpers.
export const SEEDREAM_4K_SIZE_OPTIONS = SEEDREAM_SIZE_OPTIONS
@@ -67,6 +77,19 @@ export const IMAGE_MODELS = [
style: 'vivid'
}
},
{
label: 'Seedream 4.5',
key: 'doubao-seedream-4-5-251128',
provider: ['chatfire'],
sizes: ARK_SEEDREAM_SIZE_OPTIONS.map(s => s.key),
sizeOptions: ARK_SEEDREAM_SIZE_OPTIONS,
qualities: SEEDREAM_QUALITY_OPTIONS,
defaultParams: {
size: '2048x2048',
quality: 'standard',
style: 'commercial'
}
},
]
@@ -121,7 +144,8 @@ export const IMAGE_SIZE_OPTIONS = [
{ label: '自动', key: 'auto' },
{ label: '竖图 2:3', key: '1024x1536' },
{ label: '方图 1:1', key: '1024x1024' },
{ label: '横图 3:2', key: '1536x1024' }
{ label: '横图 3:2', key: '1536x1024' },
...ARK_SEEDREAM_SIZE_OPTIONS
]
// Image quality options | 图片质量选项

View File

@@ -9,6 +9,7 @@ import {
VIDEO_MODELS,
CHAT_MODELS,
SEEDREAM_SIZE_OPTIONS,
ARK_SEEDREAM_SIZE_OPTIONS,
SEEDREAM_4K_SIZE_OPTIONS,
SEEDREAM_QUALITY_OPTIONS,
SEEDANCE_RESOLUTION_OPTIONS,
@@ -68,6 +69,10 @@ export const getModelConfig = (modelKey) => {
*/
export const getModelSizeOptions = (modelKey, quality = 'standard') => {
const model = IMAGE_MODELS.find(m => m.key === modelKey)
if (model?.sizeOptions) {
return model.sizeOptions
}
// If model has getSizesByQuality function, use it | 如果模型有 getSizesByQuality 函数,使用它
if (model?.getSizesByQuality) {
@@ -208,6 +213,7 @@ export {
// Export options | 导出选项
export { SEEDREAM_SIZE_OPTIONS, SEEDREAM_4K_SIZE_OPTIONS, SEEDREAM_QUALITY_OPTIONS, SEEDANCE_RESOLUTION_OPTIONS, VIDEO_RATIO_OPTIONS, VIDEO_DURATION_OPTIONS }
export { ARK_SEEDREAM_SIZE_OPTIONS }
// Export state | 导出状态
export { loading, error }

View File

@@ -354,7 +354,7 @@ const createFusionShots = (): ProductFusionShot[] =>
scene_image: null,
action_text: fusionDescriptionForCharacter(DEFAULT_CHARACTER_ID, i),
duration: 5,
image_model: "gpt-image-2",
image_model: "auto",
video_model: "seedance",
guide_image: null,
}))

View File

@@ -172,7 +172,7 @@ export interface ProductFusionShot {
scene_image?: ImageRef | null
action_text?: string
duration?: number
image_model?: "gpt-image-2"
image_model?: string
video_model?: "seedance"
guide_image?: ImageRef | null
}
@@ -796,7 +796,7 @@ export type AssetSize = "source" | "1024" | "1536" | "2048"
export type SubjectKind = "object" | "living"
export type SubjectView = string
export type SubjectAssetStatus = "queued" | "in_progress" | "completed" | "failed"
export type SubjectImageModelPreference = "auto" | "gpt-image-2" | "gemini-3-pro-image-preview"
export type SubjectImageModelPreference = "auto" | "gpt-image-2" | "gemini-3-pro-image-preview" | "doubao-seedream-4-5-251128"
export type SubjectModelBundle = "gpt" | "gemini"
export type SceneMode = "remove_subject" | "similar" | "style"
export type SceneStyle = "source" | "premium_product" | "clean_studio" | "warm_lifestyle" | "cinematic"