AI media harness for planning, generating, and editing locally
TypeScript
Rename Pika LoRA options
Bitti85ec3cc09aef
diff --git a/src/lib/loras.test.ts b/src/lib/loras.test.tsindex 4273d07..68e5a7f 100644--- a/src/lib/loras.test.ts+++ b/src/lib/loras.test.ts@@ -127,7 +127,7 @@ it.each([0, 1, -3, 2.5, NaN, Infinity, 2147483648])("rejects invalid step overriit("starts with the bundled adapters and preserves the local library", () => {expect(loadLoras()).toEqual([TAOMATE_LORA, TURBO_LORA, VIGGLE_ANIMATE_LORA, LIGHTX2V_TURBO_LORA, DMAD_LORA, PIKA_FL2VA_LORA, PIKA_REF2VA_LORA]);saveLoras([{ ...TAOMATE_LORA, path: "C:/weights/TaoMate.safetensors" }, { id: "style", name: "Style", path: "D:/style.safetensors" }]);- expect(loadLoras().map(({ name }) => name)).toEqual(["TaoMate 3-Step", "Style", "Turbo", "Viggle Animate Distillation", "LightX2V Turbo", "DMAD 4-Step", "Pika H3 Flex FL2VA", "Pika H3 Flex Ref2VA"]);+ expect(loadLoras().map(({ name }) => name)).toEqual(["TaoMate 3-Step", "Style", "Turbo", "Viggle Animate Distillation", "LightX2V Turbo", "DMAD 4-Step", "Pika H3 First/Last", "Pika H3 Reference"]);});it("preserves DMAD's recipe and local path and gives its fixed grid priority over step overrides", () => {diff --git a/src/lib/loras.ts b/src/lib/loras.tsindex a3c3a36..83461cc 100644--- a/src/lib/loras.ts+++ b/src/lib/loras.ts@@ -44,12 +44,12 @@ export const DMAD_LORA: Lora = {samplingPreset: "dmad-4step",};export const PIKA_FL2VA_LORA: Lora = {- id: "pika-h3-flex-fl2va", name: "Pika H3 Flex FL2VA", modelType: "minimax-h3", path: "",+ id: "pika-h3-flex-fl2va", name: "Pika H3 First/Last", modelType: "minimax-h3", path: "",url: "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/loras/pika_h3_flex_fl2va_v1_bf16.safetensors",samplingPreset: "pika-6step",};export const PIKA_REF2VA_LORA: Lora = {- id: "pika-h3-flex-ref2va", name: "Pika H3 Flex Ref2VA", modelType: "minimax-h3", path: "",+ id: "pika-h3-flex-ref2va", name: "Pika H3 Reference", modelType: "minimax-h3", path: "",url: "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/loras/pika_h3_flex_ref2va_v1_bf16.safetensors",samplingPreset: "pika-6step",};@@ -76,6 +76,10 @@ export function loadLoras(): Lora[] {...(isLoraStepOverride(entry.stepOverride) ? { stepOverride: entry.stepOverride }: entry.stepOverride === undefined && entry.schedule === "taomate-3step" ? { stepOverride: 3 } : {}) }];}) : [];+ for (const [lora, oldName] of [[PIKA_FL2VA_LORA, "Pika H3 Flex FL2VA"], [PIKA_REF2VA_LORA, "Pika H3 Flex Ref2VA"]] as const) {+ const saved = entries.find((entry) => entry.id === lora.id);+ if (saved?.name === oldName) saved.name = lora.name;+ }for (const lora of BUNDLED_LORAS) if (!ids.has(lora.id)) {if (lora.id === TAOMATE_LORA.id) entries.unshift({ ...lora });else entries.push({ ...lora });