llm-catalog-litellm
LiteLLM CustomLLM plugin for llm-catalog.
One implementation serves both in-process use and the central proxy.
For in-process use, call register() once to wire the handler into LiteLLM.
from llm_catalog.litellm import register
register() # reads ai-sdk-catalog.json (LLM_CATALOG_CONFIG or default path)
import litellm
resp = litellm.completion(
model="examplegw/fast",
messages=[{"role": "user", "content": "hi"}],
)
For the proxy, reference llm_catalog.litellm.handler from config.yaml's custom_provider_map (no register() call needed).
The handler resolves each model from ai-sdk-catalog.json itself (the JSON config shared verbatim with — and named after — ai-sdk-catalog; the legacy llm-catalog.json remains a deprecated fallback), so the proxy config never needs gateway details in litellm_params, sidestepping LiteLLM issue #18216.
Requires Python 3.12+ and LiteLLM 1.109 or newer, the first release that supports Python 3.15 and accepts openai>=3.
LiteLLM is built on httpx, while llm-catalog-pydantic-ai and llm-catalog-ai-sdk use httpx2; the two stacks install side by side, so this adapter can share an environment with those two.
See the repository README for the proxy operations guide and the verification notes (§9), including whether LiteLLM honours a custom httpx client (the route-1/route-2 decision in §6.2).
import namespace: llm_catalog.litellm
Metadata
Release files for llm-catalog-litellm 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llm_catalog_litellm-0.9.0.tar.gz | 12.4 kB | Without provenance | Details for llm_catalog_litellm-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llm_catalog_litellm-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for llm_catalog_litellm-0.9.0-py3-none-any.whl |
Total release size: 26.1 kB
Release files / llm_catalog_litellm-0.9.0.tar.gz
| Download URL | llm_catalog_litellm-0.9.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f1515edfb57a1766a599d47cdaee9d70db72dc1bf7f31027e6fc247f2a82df5
|
|
BLAKE2b-256 checksum How to use checksums |
d9e7041a28927215bbe906f91f0090138fc177fd9554cb9e4caebb1dbf732b79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / llm_catalog_litellm-0.9.0-py3-none-any.whl
| Download URL | llm_catalog_litellm-0.9.0-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cb65b05cb978d2b0a3808ed85a1827b7cd6dc013177fb2eb7f407134a36ac40
|
|
BLAKE2b-256 checksum How to use checksums |
bdde7403103cef3330e9dcd79a5bad66af138f0d895343e37493c567936b7ff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for llm-catalog-litellm 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.