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

Đang mở Phù hợp với người mới
#985 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@ShaiShmuel đang làm issue này rồi.

Từ ngày 17/11/2026.

  • #986 của @ShaiShmuel — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Tìm đoạn mã tạo gợi ý MODEL_NOT_FOUND và lọc các ID mô hình có chứa :. Đọc matcher và các bài kiểm thử hiện có về gợi ý, sau đó so sánh hành vi khi ID cơ sở có trong danh sách và khi chỉ có ID hồ sơ trong danh sách. Công việc hoàn tất khi ở trường hợp thứ hai, các kết quả gần đúng gợi ý toàn bộ ID hồ sơ có trong danh sách, còn ở trường hợp thứ nhất vẫn chỉ gợi ý ID cơ sở.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
3.5k
Fork
328
Merge trung bình
16 giờ 25 phút
Pull request đã merge (30 ngày)
121

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của superlinked/sie

Tất cả issue của superlinked/sie

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.