Skip to content

Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.

feat(panel/loras): auto-insert trigger word into prompt on LoRA activation

mrbizarro2a6f9bfcaca6
diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.py
index bab3315..4498f0f 100644
--- a/mlx_ltx_panel.py
+++ b/mlx_ltx_panel.py
@@ -23795,6 +23795,19 @@ function loraRowHtml(r, modeTag) {
function toggleLora(path, on, recommended, name) {
if (on) {
addLoraToActive({ path, strength: recommended, name });
+ // Auto-insert the LoRA's first trigger word into the prompt so the
+ // user doesn't have to remember + retype it. The biggest source of
+ // "I activated the LoRA but it didn't fire" reports is the trigger
+ // missing from the prompt entirely. appendTriggerToPrompt is
+ // idempotent — duplicate clicks are no-ops. Skips silently if the
+ // LoRA has no trigger_words (style-only LoRAs).
+ try {
+ const meta = _knownUserLoras.find(u => u.path === path);
+ const triggers = (meta && meta.trigger_words) || [];
+ if (triggers.length) {
+ appendTriggerToPrompt(triggers[0]);
+ }
+ } catch (e) { /* picker race during boot — ignore */ }
} else {
removeLoraFromActive(path);
}