Score stated upstreams that fail to resolve (an actionable origin-link gap)

Đang mở
#754 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

Start from reconcileSameAs, where stated evidence fails to match, and recordCompleteness, which runs in the cron beside the database and can do the grouped count in one query. Read the /v1/status response builder and the gap-report script to see how per-provider tallies are served; the report reads /v1/models and must take the same number from /v1/status or the row. Done when /v1/status shows the per-provider count of stated upstreams whose namespace resolves but link is null, the gap report agrees, and the case-sensitivity decision is recorded.

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

Mô tả

Problem

After #754 origin links are a count, not a score, because the old score charged providers for links the service can never write. The real, fixable gap is narrower: a provider STATES an upstream (models.upstream_provider is set) and reconcileSameAs finds no row for it. Example: Fireworks states moonshotai/Kimi-K3 and Moonshot lists kimi-k3, so nothing links because stated-tier matching is case-sensitive. Nothing shows these today: unresolved stated evidence is stored but never served.

Ask

  • Count, per provider, live rows with stated evidence whose namespace resolves to a catalogued provider and whose link is null. Evidence whose namespace no provider claims (OpenRouter meta-llama/...) is not a gap: no maker row exists.
  • recordCompleteness runs in the cron next to the database, so it can compute this with one grouped query and no row-shape change. The gap-report script reads /v1/models and cannot: either it reads the tally from /v1/status, or the evidence is served on the row. Keep one scorer.
  • Decide whether stated-tier matching should be case-insensitive, as the name tier already is. That alone would resolve the Kimi and GLM rows on Fireworks, Together and Hugging Face.

Acceptance

  • /v1/status shows, per provider, how many stated upstreams did not resolve.
  • The gap report shows the same number.
Ngôn ngữ chính
TypeScript
Star
0
Fork
1
Merge trung bình
5 giờ 40 phút
Pull request đã merge (30 ngày)
193

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 TanStack/schemas

Tất cả issue của TanStack/schemas

Issue tương tự

Thêm issue về TypeScript

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.