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

Aperta Adatta ai principianti
#985 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ShaiShmuel ci sta già lavorando.

Dal 17/11/2026.

  • #986 di @ShaiShmuel — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Trova il codice che crea il suggerimento MODEL_NOT_FOUND e filtra gli ID dei modelli che contengono :. Leggi il matcher e i test esistenti per i suggerimenti, poi confronta il comportamento quando è elencato l’ID base e quando è elencato solo un ID di profilo. Il lavoro è completato quando, nel secondo caso, le corrispondenze approssimative suggeriscono l’intero ID di profilo presente nell’elenco, mentre nel primo continuano a suggerire solo l’ID base.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
3.5k
Fork
328
Merge medio
16h 25m
PR unite (30g)
121

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di superlinked/sie

Tutte le issue di superlinked/sie

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.