Skip to content

feat(sync): add Novita AI model catalog sync - #7050

Draft
Alex-yang00 wants to merge 2 commits into
anomalyco:devfrom
Alex-yang00:feat/novita-ai-model-sync
Draft

Alex-yang00 wants to merge 2 commits into
anomalyco:devfrom
Alex-yang00:feat/novita-ai-model-sync

Conversation

@Alex-yang00

Copy link
Copy Markdown
Contributor

Summary

  • Add a Novita AI model catalog sync provider
  • Fetch model inventory from https://api.novita.ai/openai/v1/models
  • Preserve existing hand-authored metadata and model inheritance
  • Keep existing entries when the API response is account-scoped
  • Skip remote-only models because the endpoint does not provide complete catalog metadata
  • Wire NOVITA_API_KEY into the hourly sync workflow
  • Add focused parser, API, registration, and retention tests

Data source

Required repository secret

The sync job requires the NOVITA_API_KEY repository secret.

Validation

  • bun test packages/core/test/novita-ai.test.ts — 9 passed
  • bun validate — passed
  • git diff --check — passed
  • bun test packages/core/test/sync.test.ts — 193 passed, 2 unrelated existing failures (Hyper and DeepInfra expectations)

Notes

This is intentionally a conservative first implementation: it does not delete existing model files missing from the API response and does not create incomplete TOMLs for remote-only IDs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant