Repairs are targeted edits to a script that already exists: a render
error, a layout finding, a compile error. With a reasoning chat model
they routinely take minutes (Math Animator repairs regularly ran past
the 180 s repair timeout); the Settings task model does them in seconds.
task_model_agent(factory) builds an agent bound to the task model at its
configured reasoning level, or returns None when no task model is set.
- Math Animator: repair_agent = task-model CodeGeneratorAgent, falling
back to the main code agent.
- Video Lesson: the first draft is still written by the chat model;
attempts 2+ go to a task-model LessonWriterAgent that shares the same
conversation (share_conversation), falling back to the main writer.
The Image description model dropdown filters /api/settings/llm-options on
supports_vision, but the endpoint only emitted declared_vision, which no
frontend code reads, so the list was always empty.
Emit supports_vision per model, preferring the catalog's own capability
declaration and falling back to supports_vision(provider, model) for the
provider/MODEL_OVERRIDES defaults. The declaration has to win here: the
process-global override table only refreshes on the next runtime
resolution, so reading it alone left a freshly declared model hidden in a
newly started process -- the same asymmetry the issue reports. This is the
rule lightrag/roles.py already applies.
Signed-off-by: cgycorey <cgycorey@users.noreply.github.com>
* feat: add per-conversation reasoning-effort override (#641)
* refactor(config): parse the LLM selection once
`apply_llm_selection_to_catalog` already calls `LLMSelection.from_payload`,
so resolving the override parsed the same payload a second time — meaning a
malformed `reasoning_effort` was validated and raised from two places.
`from_payload` is idempotent on an already-parsed value, so parse once and
pass the object through.
Also correct the `VALID_REASONING_EFFORTS` comment: it called itself the
single source of truth while pointing at two things that are not the same
vocabulary. `reasoning_params.py` maps a level onto a provider's actual knob,
and the per-backend `efforts` lists say what each subagent CLI accepts (some
are empty — no effort flag at all). This constant is only the
request-validation union.
---------
Co-authored-by: Ademola <ademicho@gmail>
Co-authored-by: Frank <bingxizhao@novix.science>