Skip to content

feat(ml-api): add model registry and GET /model-info - #1017

Merged
Userunknown84 merged 1 commit into
Userunknown84:mainfrom
pavsoss:feat/1007-model-registry
Jul 29, 2026
Merged

feat(ml-api): add model registry and GET /model-info#1017
Userunknown84 merged 1 commit into
Userunknown84:mainfrom
pavsoss:feat/1007-model-registry

Conversation

@pavsoss

@pavsoss pavsoss commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

The served model was opaque — no way to see which artifacts are live, their checksums, or when they were trained. This adds a lightweight registry.

  • A registry module fingerprints each artifact (sha256, size, mtime) and reads an optional model_card.json (trained_at, metrics, labels) when present.
  • The serving snapshot carries this metadata and refreshes it on every reload.
  • A public GET /model-info returns {version, checksums, metadata}, documented in the OpenAPI spec.

Additive: no existing endpoint or response changes.

Test plan

Unit coverage for the fingerprinting (checksums are stable and change only when an artifact changes) plus a /model-info shape check.

Part 1/2 of #1007.

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

@pavsoss is attempting to deploy a commit to the Aditya Sharma's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Userunknown84
Userunknown84 merged commit e1d1caf into Userunknown84:main Jul 29, 2026
4 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants