Repository navigation
fix(llm): stop telling users to run gaia download <model> - #4293
Conversation
A missing model told users to run `gaia download <model>`, which argparse rejects (exit 2), so the one remedy offered could never work. The model-not-found and builder "no usable model" errors now name the pull command for the host's Lemonade install via describe_client_hint(), and the image-gen skill no longer tells the model to suggest the removed `lemonade-server pull`. A new guard test fails on any runtime string in src/, hub/ or tui/ that names `lemonade-server serve`/`pull`. Files whose fix is already in flight (amd#3122, amd#4181) are listed as pending and must be removed from the list when those land. Part of amd#4216
Request changesThis replaces the dead The same dead command still reaches users from the flagship agent. The readiness endpoint of the hub The project's eval gate hasn't run. This edits a Worth a look but not blocking: the builder's message now reads "For example: Run: …", and the pending-file check will crash rather than explain itself if one of the listed files gets renamed. Real-world evidenceNo 🔍 Technical details🟡 Important1. Two live sites remain after this PR:
The new from gaia.llm.lemonade_launcher import describe_client_hint
hint = (
f"The model {probe['model_id']} is not downloaded. "
f"{describe_client_hint('pull', probe['model_id']).instruction.rstrip('.')}, "
"then re-check."
)2.
🟢 Minor3. Double colon in the builder remedy (
4. Pending-file check crashes on a rename (
5.
Note on merge ordering
Strengths
|
The flagship agent's readiness probe still told users to run `gaia
download <model>` when the model was missing — the exact dead command
this branch set out to remove — and its SKILL.md and two doc pages
repeated it. The guard could not see any of them: it scanned only
src/gaia/**/*.py, while the string that reaches the TUI's preflight
screen lives in hub/.
The hint now routes through describe_client_hint('pull', model) like
every other remedy, so it names the Lemonade client the machine has. The
guard scans src/gaia, hub, tui and docs, over every extension a
user-facing string ships in, and a second test asserts it actually
reaches those roots — a guard that scans the wrong tree passes while the
bug ships.
Also from review: the builder's remedy no longer reads "For example:
Run: ...", the pending-file check explains a rename instead of raising
FileNotFoundError, and markdown bullets/headings are no longer mistaken
for comments in the removed-CLI scan.
|
Confirmed the finding and closed it: the flagship agent really did still hand users The guard could not have caught any of them. It scanned On the eval gate: not needed for this round. These are error/doc strings, not agent-facing prompts or tool registration, and the previous round's 🔍 Technical detailsImportant 1 — remaining
Minors 3, 4, 5 — all applied. The builder remedy drops the Added Fail-without-the-fix check — reverting only the
Merged |
|
CI note: the one red unit-test job is not from this branch. |
# Conflicts: # hub/agents/gaia/npm/SKILL.md # src/gaia/agents/builder/agent.py
When a model was missing, GAIA told users to run
gaia download <model>. The CLI rejects that with exit 2, so the only fix it offered couldn't work. The model-not-found and agent-builder errors now give the pull command for the user's actual Lemonade install, and the image-gen skill no longer tells the model to suggest the removedlemonade-server pull. A new guard test fails CI on any runtime string that nameslemonade-server serve/pull, so these can't come back.This covers the part of #4216 that no other PR does. The
lemonade-server servestrings are fixed in #3122 (email agent, readiness, provider timeout, TUI, webui README, tests) and #4181 (hub gaia agent). The guard lists those files as pending. It fails whichever of those PRs merges second until its entries are removed from the list, which keeps the list from going stale.Test plan
python -m pytest tests/unit/test_remedy_commands_are_runnable.py tests/unit/test_no_removed_lemonade_cli.py tests/unit/test_lemonade_error_classification.py tests/unit/agents/test_builder_model_selection.py -q: 7 failed on main before the fix, 107 passed aftertest_lemonade_launcher.py,test_sd_error_messages.py,test_llamacpp_backend.py,test_amd_gaia_urls.py): 197 passed in totalgaia eval agent: the model-not-found text is returned as the agent's answer, and the image-gen skill text is shown to the LLMPart of #4216