Add MOSS-Image on the Image v2 path and stop the queue calling it Klein.

The bench queue labeled every engine except Krea, Qwen, MiniMax, and LTX as Klein, and the v2 starter treated any engine other than Krea as Flux.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-10-22 20:04:58 -05:00
co-authored by Cursor
parent 74edeabc39
commit 354f475866
30 changed files with 873 additions and 111 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ import { isLtxWorkflow, isTextToVideo, isXaigenStudio, LTX_DISABLED_MESSAGE, ltx
import { persistLoraFields } from '~/server/utils/loras'
import { resolveLoraStack } from '~/utils/loras'
import { persistPromptWrappers } from '~/utils/promptParts'
import { imageV2StackSpecials } from '~/utils/imageV2'
import { imageV2StackSpecials, parseImageV2Engine } from '~/utils/imageV2'
import { allowIdentityRefs, type PermanenceRef } from '~/utils/globalLocks'
export type StudioJobStatus = 'waiting' | 'running' | 'held' | 'complete' | 'error' | 'cancelled'
@@ -66,7 +66,7 @@ export interface StudioJobPayload {
imagePipeline?: 'v1' | 'v2'
v2Mode?: 'edit' | 'compose' | 'refine' | 'generate' | 'iterate'
v2Task?: 'scene' | 'identity' | 'outfit' | 'face_lock' | 'refine' | 't2i'
engine?: 'flux' | 'krea'
engine?: 'flux' | 'krea' | 'moss'
snofsModel?: number
snofsClip?: number
consistencyModel?: number
@@ -1318,7 +1318,7 @@ async function startStudioEditJob(item: StudioJob) {
}
})
await markStudioLive(item.ownerKey, item.id, live.id)
const v2Engine = payload.engine === 'krea' ? 'krea' : 'flux'
const v2Engine = parseImageV2Engine(payload.engine, 'flux')
const v2Specials = imageV2StackSpecials(payload.loraStack, v2Engine)
void runEditV2(live, {
mode,