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.

fix(train): dev-transformer Download → 'unknown install key' (multipart vs parse_qs)

mrbizarro7781c030104f
diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.py
index 7c32460..b4c1ccb 100644
--- a/mlx_ltx_panel.py
+++ b/mlx_ltx_panel.py
@@ -22005,10 +22005,16 @@ async function trainCheckPreflight() {
}
async function trainInstall(key) {
- const fd = new FormData();
- fd.set('key', key);
+ // The panel parses POST bodies with parse_qs (urlencoded ONLY); a FormData
+ // body serializes as multipart and reads back empty, so /train/install saw
+ // key='' and returned "unknown install key" (reported by @cocktailpeanut,
+ // 2026-06-04). Send urlencoded like every other POST in this panel.
try {
- const r = await fetch('/train/install', { method: 'POST', body: fd });
+ const r = await fetch('/train/install', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+ body: 'key=' + encodeURIComponent(key),
+ });
const data = await r.json();
if (!data.ok) {
alert('Download failed: ' + (data.error || r.status));