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:
@@ -7,7 +7,7 @@ import { pathToFileURL } from 'node:url'
|
||||
import ts from 'typescript'
|
||||
|
||||
const stub = `
|
||||
export const IMAGE_V2_ENGINES = ['flux', 'krea']
|
||||
export const IMAGE_V2_ENGINES = ['flux', 'krea', 'moss']
|
||||
export function parseImageV2Engine(raw, fallback = 'flux') {
|
||||
const value = String(raw || '').trim().toLowerCase()
|
||||
return IMAGE_V2_ENGINES.includes(value) ? value : fallback
|
||||
@@ -70,6 +70,7 @@ test('default negative blocks trademarked names and NSFW', () => {
|
||||
test('engine and style defaults; sizes snap to allowed sides', () => {
|
||||
assert.equal(parseAssetPackEngine(undefined), 'flux')
|
||||
assert.equal(parseAssetPackEngine('krea'), 'krea')
|
||||
assert.equal(parseAssetPackEngine('moss'), 'moss')
|
||||
assert.equal(parseAssetPackStyle('panel_bg'), 'panel_bg')
|
||||
assert.deepEqual(assetPackSize('sticker'), { width: 1024, height: 1024, aspect: null })
|
||||
assert.deepEqual(assetPackSize('icon'), { width: 768, height: 768, aspect: null })
|
||||
|
||||
Reference in New Issue
Block a user