Liking cljdoc? Tell your friends :D

llm.sdk.litellm-snapshot

Read-only loader for the LiteLLM-derived pricing/capability snapshot bundled at resources/litellm-snapshot.json.

LiteLLM maintains an actively-curated model catalog keyed by each provider's native 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 limits, capability flags, lifecycle metadata, and available text/modality-specific 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 model catalog keyed by each
provider's native 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 limits, capability flags, lifecycle
metadata, and available text/modality-specific 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.
raw docstring

known-providersclj

(known-providers)

Set of SDK provider keywords the snapshot has entries for.

Set of SDK provider keywords the snapshot has entries for.
sourceraw docstring

list-modelsclj

(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.
sourceraw docstring

loaded?clj

(loaded?)
source

lookupclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close