Add Image v2 as a sibling of Image edit, with separate Klein graphs.
Keep the v1 Image tab on its dual-branch template. The host agent follows Desktop's live port so Coolify stays on :8198. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import type { LoraStackItem } from '~/utils/loras'
|
||||
import type { VideoWorkflowId } from '~/utils/videoModels'
|
||||
import type { ImageV2PresetSettings } from '~/utils/imageV2'
|
||||
|
||||
export type GenerationPresetKind = 'video' | 'image'
|
||||
export type GenerationPresetKind = 'video' | 'image' | 'imagev2'
|
||||
|
||||
export type VideoPresetSettings = {
|
||||
workflow?: VideoWorkflowId
|
||||
@@ -75,11 +76,13 @@ export type GenerationPreset = {
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
loraStack: LoraStackItem[]
|
||||
settings: VideoPresetSettings | ImagePresetSettings
|
||||
settings: VideoPresetSettings | ImagePresetSettings | ImageV2PresetSettings
|
||||
}
|
||||
|
||||
export function parseGenerationPresetKind(raw: unknown): GenerationPresetKind {
|
||||
return raw === 'image' ? 'image' : 'video'
|
||||
if (raw === 'image') return 'image'
|
||||
if (raw === 'imagev2') return 'imagev2'
|
||||
return 'video'
|
||||
}
|
||||
|
||||
export function normalizePresetName(raw: unknown) {
|
||||
|
||||
Reference in New Issue
Block a user