Repository navigation
docs(router): clarify the ModelNotFound docstring - #211
mattmillerai wants to merge 3 commits into
Conversation
…spec The synced spec rewrote model_not_found's meaning: a model retired past its sunset date now lands in this bucket, and its detail names the retirement date and, when one is visible, a live successor id instead of a suggestion list. Reword the docstring to cover that and record the new meaning digest so the drift check and the contract test pass.
There was a problem hiding this comment.
🔍 Cursor Review — Consolidated panel
Triggered by @mattmillerai.
Found 5 finding(s).
| Severity | Count |
|---|---|
| 🟡 Medium | 1 |
| 🟢 Low | 3 |
| ⚪ Nit | 1 |
Panel: 6/6 reviewers contributed findings.
|
🤖 The reviews loop filed Linear follow-up ticket(s) for review thread(s) deferred as out of scope for this PR:
The following carry
|
main already carries the cloud@9794097 Router spec sync (#209), so spec/router-openapi.yaml merges clean. The only conflict is the ModelNotFound docstring; this branch's wording is kept. The read marker is the same on both sides.
|
De-conflicted against |
ELI5
This rewrites the help text for the "model not found" error so it explains more clearly when a model counts as gone, when you are pointed at a replacement, and when you get suggestions instead. It changes wording only. The SDK behaves exactly as before.
Summary
Rewords the
ModelNotFounddocstring insrc/comfy_sdk/router_exceptions.py. That 12-line docstring is the PR's whole diff againstmain.detail(retirement date, plus a successor when one is visible) replaces the suggestion list._spec_meaning_digest(6c0e0e327e4d) is unchanged. It already matches the vendored Router spec.History. This PR originally carried the cloud@9794097 Router spec sync and the
ModelNotFoundread-marker re-bless. Both have since landed onmainvia #209. After a merge frommain(no rebase, no force-push), only this branch's docstring wording is left. Merging it lands the clearer wording. Closing it instead loses only that wording.Provenance
Verified:
mainis theModelNotFounddocstring only. Spec, generated models and digest are all unchanged.ruff check,ruff format --check,mypy src,pytest(1265 passed, 9 skipped),scripts/check_drift.pyand the public-repo hygiene script.Deviations:
main.