Add LoRA stacks with per-item strengths and named video/image generation presets so setups survive reload without mixing Klein onto MiniMax. Keep LTX Pink Cherry and xAIGen LoRAs on xAIGen, and run Recommend on Beast.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-28 15:24:44 -05:00
co-authored by Cursor
parent 0af3cddb14
commit f8db0d626a
36 changed files with 1767 additions and 246 deletions
+25
View File
@@ -0,0 +1,25 @@
import { listGenerationPresets, saveGenerationPreset } from '~/server/utils/generationPresets'
import { parseGenerationPresetKind } from '~/utils/generationPresets'
export default defineEventHandler(async (event) => {
const { owner } = assertLibraryOwner(event)
const body = await readBody<{
name?: string
kind?: string
loraStack?: unknown
settings?: unknown
overwrite?: boolean
}>(event).catch(() => ({}))
const kind = parseGenerationPresetKind(body?.kind)
const preset = await saveGenerationPreset(owner, {
name: body?.name || '',
kind,
loraStack: body?.loraStack,
settings: body?.settings,
overwrite: body?.overwrite === true
})
return {
preset,
presets: listGenerationPresets(owner, kind)
}
})