Eliminate xAIGen and LTX; AIGen is the only studio.
Drop the studio split, backup-to-xAIGen link, and LTX engine option. Show all LoRAs on AIGen and remove the Photos show/hide inputs toggle so slots stay visible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -7,11 +7,10 @@ import { buildIdentityPrompt } from '~/utils/identityPrompt'
|
||||
import { applyUserLoraToGraph, resolveGraphLoraNames } from '~/server/utils/loras'
|
||||
import type { LoraStackItem } from '~/utils/loras'
|
||||
import {
|
||||
coerceVideoWorkflow,
|
||||
isLtxWorkflow,
|
||||
isTextToVideo,
|
||||
LTX_DISABLED_MESSAGE,
|
||||
LTX_NEGATIVE,
|
||||
ltxWorkflowEnabled,
|
||||
parseVideoWorkflow,
|
||||
type VideoWorkflowId
|
||||
} from '~/utils/videoModels'
|
||||
@@ -81,10 +80,7 @@ function templateFor(id: VideoWorkflowId) {
|
||||
}
|
||||
|
||||
export function buildWorkflow(params: GenerateParams) {
|
||||
const version = parseVideoWorkflow(params.workflow)
|
||||
if (isLtxWorkflow(version) && !ltxWorkflowEnabled()) {
|
||||
throw new Error(LTX_DISABLED_MESSAGE)
|
||||
}
|
||||
const version = coerceVideoWorkflow(params.workflow)
|
||||
if (isLtxWorkflow(version)) return buildLtxWorkflow(params, version)
|
||||
|
||||
const graph = structuredClone(templateFor(version === 't2v' ? 'v1' : version === 'v2' ? 'v2' : 'v1'))
|
||||
|
||||
Reference in New Issue
Block a user