fix(video): return HTTP 400 for invalid LTX-2.5 requests #6225
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 372 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.354
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6225"
general
weight: 0.35
Jackmeson1
Fixes #6224
LTX-2.5 Distilled and Dev now return HTTP 400 with the validation detail for the request errors below.
| Request | Before | After |
|---|---:|---:|
| Either variant,
width=1000| 500 | 400 || Distilled,
num_inference_steps=10| 500 | 400 || Dev,
two_stage=true| 500 | 400 || Either variant, image request with
condition_strength=2| 500 | 400 |Cause
The adapter raised ordinary exceptions from its validators. The three video routes already translate
InvalidModelRequestErrorto HTTP 400. Because the adapter merges request options with catalog defaults before validation, it needs the source of the effective value to choose the exception. A configuredframe_rate, for example, takes precedence over a caller’sfps.Change
image_crf.[-263, 264 - 1](follow-up commit after review).Invalid catalog defaults, an unloaded model, and pipeline or encoding failures retain HTTP 500. Phai-M1 keeps its existing validation and frame rounding. The video guide already describes the generation constraints. Video model guide
Tests
The JSON and multipart tests exercise the public handlers, decorated
ModelActor, and catalog adapter with stubbed generation and encoding. The image and first/last-frame tests need Diffusers 0.40.0 to exercise the real condition class. They use stand-ins for that class and the sampling constants in other environments.I checked
e1dd1f0cagainst0f9eaf29on Ubuntu 24.04.5 LTS:AI disclosure: this was prepared with AI assistance (Claude Code with Claude Fable 5.2 and Claude Opus 5.5, and OpenAI Codex with GPT-6.2).