MODEL_NOT_FOUND gives no suggestion for a model listed only as model:profile

Offen Anfängerfreundlich
#985 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@ShaiShmuel arbeitet bereits daran.

Seit 17.11.2026.

  • #986 von @ShaiShmuel — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
65/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
python

Rechercherichtung

Finde den Code, der den Hinweis für MODEL_NOT_FOUND erstellt und Modell-IDs filtert, die : enthalten. Lies den Matcher und seine vorhandenen Tests für Vorschläge und vergleiche dann das Verhalten, wenn die Basis-ID aufgeführt ist und wenn nur eine Profil-ID aufgeführt ist. Erledigt ist es, wenn bei Beinahe-Treffern im letzteren Fall die gesamte aufgeführte Profil-ID vorgeschlagen wird, während im ersteren Fall weiterhin nur die Basis-ID vorgeschlagen wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement rust

Follow-up to #939 (suggestions added in #940).

  1. The MODEL_NOT_FOUND hint is built only from the model ids the caller may list.
  2. The matcher drops every model:profile id from that list before comparing, on the assumption that the base id model is listed as well and stands for the model.
  3. A caller's list can contain a model only in its model:profile form, for example org/model-a:profile-x without org/model-a.
  4. For such a model there is then nothing left to compare the request with.
  5. A near miss of the base id, such as org/modl-a or model-a, gets the plain Model '...' not found, while the same near miss of an id listed without a profile gets Did you mean '...'?.

Net effect: models that a caller can reach only through a profile id are invisible to the suggestion matcher, so a small typo in their name gives no hint at all.

Expected: when the base id is not in the caller's list, match the request against the part before the : and suggest the whole listed id (org/model-a:profile-x). The bare base must not be printed, since the caller cannot list it. When the base id is listed, keep suggesting only the base, as today.

Vorherrschende Sprache
Python
Sterne
3.5k
Forks
328
Ø Merge
16 Std. 25 Min.
Gemergte PRs (30 T.)
121

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus superlinked/sie

Alle Issues in superlinked/sie

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.