feat: add live model catalog snapshot - #30
Merged
Conversation
Only conflict was __init__.py: keep the new catalog exports, keep main's version. Merged tree: 309 tests pass.
- Bump to 0.9.0 (pyproject + __init__) and add the CHANGELOG entry the catalog snapshot shipped without. This adds public API, so it is a minor bump, not a patch. - Fix the snapshot comment: it was dated 2026-07-25 (a day in the future) and pointed at blockrun-llm-go-vip/models.go, which does not exist in that repo. - Replace that dangling cross-reference with CATALOG_SNAPSHOT_DATE, an exported constant so a consumer can tell how stale its bundled copy is. - Assert the ID shape in the catalog test, not just the count.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BLOCKRUN_MODEL_IDS,model_ids(), andis_known_model()from the LiteLLM package.Why
The public BlockRun catalog includes newly released models such as
anthropic/claude-opus-5; SDK consumers need an offline model-ID list while retaining the gateway as the live source of truth.Validation
pytest -q tests/test_catalog.pyruff check blockrun_litellm/catalog.py blockrun_litellm/__init__.py tests/test_catalog.pyexamples/litellm_config.yamlGET /v1/modelsparity: 82 live IDs match the bundled catalog.ok(17 input / 4 output tokens).