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(prompts): render 0 max-dim as 'unclamped' not literal 0

mrbizarroe436acbe56dd
diff --git a/agent/prompts.py b/agent/prompts.py
index a85c760..fa93bd9 100644
--- a/agent/prompts.py
+++ b/agent/prompts.py
@@ -32,8 +32,14 @@ def build_system_prompt(*, capabilities: dict, tools_doc: str,
tier = capabilities.get("tier", "standard")
friendly = {"base": "Compact", "standard": "Comfortable",
"high": "Roomy", "pro": "Studio"}.get(tier, tier)
- max_dim_t2v = capabilities.get("max_dim_t2v", 1280)
- max_dim_kf = capabilities.get("max_dim_kf", 768)
+ # tier_max_dim() returns 0 for "no clamp" tiers. Rendering the
+ # literal 0 into the system prompt reads to the model as "zero
+ # pixels" instead of "no limit" — say so explicitly. /agent/config
+ # still emits the int (other consumers may key on it).
+ _t2v = capabilities.get("max_dim_t2v", 1280)
+ _kf = capabilities.get("max_dim_kf", 768)
+ max_dim_t2v = "unclamped (full 1280)" if _t2v == 0 else _t2v
+ max_dim_kf = "unclamped (full 1280)" if _kf == 0 else _kf
has_q8 = capabilities.get("allows_q8", False)
today = datetime.now().strftime("%Y-%m-%d")
project_notes_block = _format_project_notes_block(project_notes)