Read-only loader for the LiteLLM-derived pricing/capability snapshot bundled at resources/litellm-snapshot.json.
LiteLLM maintains an actively-curated catalog of ~2.7k model entries keyed by their provider's model id. The bundled snapshot is a filtered subset — only providers we have SDK adapters for, with each entry stripped to the fields llm.sdk.registry uses (context-length, max-output-tokens, capability flags, per-million pricing). To refresh, re-run scripts/build_litellm_snapshot.py.
This tier is a sibling to llm.sdk.models-dev — both contribute to llm.sdk.registry's field-merge. Where they overlap, the merge layer (registry/merge-pair) takes a key-level union and rightmost- wins per field; the registry orders the tiers via its lookup fn.
Read-only loader for the LiteLLM-derived pricing/capability snapshot bundled at resources/litellm-snapshot.json. LiteLLM maintains an actively-curated catalog of ~2.7k model entries keyed by their provider's model id. The bundled snapshot is a filtered subset — only providers we have SDK adapters for, with each entry stripped to the fields llm.sdk.registry uses (context-length, max-output-tokens, capability flags, per-million pricing). To refresh, re-run scripts/build_litellm_snapshot.py. This tier is a sibling to llm.sdk.models-dev — both contribute to llm.sdk.registry's field-merge. Where they overlap, the merge layer (registry/merge-pair) takes a key-level union and rightmost- wins per field; the registry orders the tiers via its lookup fn.
(known-providers)Set of SDK provider keywords the snapshot has entries for.
Set of SDK provider keywords the snapshot has entries for.
(list-models provider-id)Return normalized ModelEntry maps for every model the snapshot has under provider-id.
Return normalized ModelEntry maps for every model the snapshot has under provider-id.
(lookup provider-id model-id)Return a normalized ModelEntry for (provider-keyword, model-id), or nil when the snapshot doesn't carry that entry.
Return a normalized ModelEntry for (provider-keyword, model-id), or nil when the snapshot doesn't carry that entry.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |