Fill novita record context windows from the Novita API

Merged
AD
3mo ago
+83-2

Follow-up to #641, same method applied to the novita provider.

What changed

25 of the 34 novita.yml records gain a context_window; the 9 records no longer in Novita's live catalog are untouched (no live source for a window). Purely additive — no existing key was changed or removed.

Where the values come from

Novita's own model catalog, https://api.novita.ai/v3/openai/models (public, no key), reports context_size per model. Novita is the host actually enforcing these limits, so its catalog is the authority for its own records — the same boundary #641 drew.

How they were verified

  • Every value was independently cross-checked against OpenRouter's per-model endpoints API: 8 of the 25 models have a Novita-served endpoint there, and all 8 agree exactly with Novita's catalog. The other 17 are served only by Novita (single-source, but the source is the enforcing host). Notably meta-llama/llama-3.3-70b-instruct = 12,288 — Novita is the low end of the 12,288–131,072 endpoint spread that made #641 omit the openrouter record for that model.
  • The final diff was verified line-by-line against the saved API snapshot: every + line is a context_window whose value equals the catalog's, and there are no other added or removed lines.
  • Semantic diff of the built data.json: 25 records changed, all under novita, only the context_window field.

The catalog also has an undocumented status field (values 1 and 4). Status 4 appears to mean hidden-from-website/deprecated (those models' novita.ai pages 404) while remaining API-listed with an enforced context_size; 9 of the 25 filled records are status 4 and keep their catalog value — a last-known window beats none, and they'll be treated as delisted once they leave the catalog.

Test pins added in test_model_matching.py: two corroborated values (including the 12,288) and one delisted record staying None.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y6Uxft3Kg2MKGJXjbadwNU