Let MOSS use the same LoRA picker and chain those adapters onto its graph.
The picker was hidden and the API cleared every stack, so a selected MOSS job could not carry a LoRA. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -440,7 +440,6 @@ function linkRef(value: unknown): [string, number] | null {
|
||||
}
|
||||
|
||||
export function assertImageV2LoraStack(stack: unknown, engine: 'flux' | 'krea' | 'moss') {
|
||||
if (engine === 'moss') return []
|
||||
const items = normalizeLoraStack(stack)
|
||||
const wrong = items.find((item) => {
|
||||
const tagged = imageLoraEngineOf(item.name)
|
||||
@@ -482,7 +481,7 @@ function clipConsumers(graph: WorkflowGraph) {
|
||||
export function applyImageV2UserLoras(
|
||||
graph: WorkflowGraph,
|
||||
stack?: unknown,
|
||||
engine: 'flux' | 'krea' = 'flux'
|
||||
engine: 'flux' | 'krea' | 'moss' = 'flux'
|
||||
) {
|
||||
stripExistingLoraLoaders(graph)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user