launchdarkly-ai-litellm-messages
Experimental. This package stays on 0.x until the Python and JavaScript LiteLLM integrations match.
Provider-agnostic LaunchDarkly AI Config handler backed by LiteLLM's in-process
acompletion API.
Installation
pip install launchdarkly-ai-server launchdarkly-server-sdk launchdarkly-ai-litellm-messages
Python uses LiteLLM in-process; no proxy endpoint is required. Set the provider
credentials required by the models in your AI Config, such as
OPENAI_API_KEY or ANTHROPIC_API_KEY. Standard LiteLLM configuration,
gateways, and model aliases are supported.
To route every call through a specific endpoint or key instead (for example a
LiteLLM proxy), pass base_url / api_key to create_litellm_messages_handler.
These come from your code, never from the AI Config's model.parameters — an
AI Config variation cannot redirect the request.
Usage
from launchdarkly_ai_litellm_messages import create_litellm_messages_handler
from launchdarkly_ai_server import config
result = await config(
key="assistant",
handler=create_litellm_messages_handler(),
).invoke("Hello", {"kind": "user", "key": "user-123"})
The evaluated AI Config model name is passed directly to LiteLLM, so standard LiteLLM model prefixes, gateways, and aliases are supported. Tool calls, structured output, multimodal history, and streaming are supported without constructing a provider-native client.
Because this is a wildcard messages handler, do not register it together with
another ["*", "messages"] handler such as LangChain in the same registry.
Metadata
Release files for launchdarkly-ai-litellm-messages 0.1.1
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 |
|---|---|---|---|---|
| launchdarkly_ai_litellm_messages-0.1.1.tar.gz | 12.5 kB | Without provenance | Details for launchdarkly_ai_litellm_messages-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| launchdarkly_ai_litellm_messages-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for launchdarkly_ai_litellm_messages-0.1.1-py3-none-any.whl |
Total release size: 20.6 kB
Release files / launchdarkly_ai_litellm_messages-0.1.1.tar.gz
| Download URL | launchdarkly_ai_litellm_messages-0.1.1.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83592475df07153b7cafd1002a94a7040cdff6c184044c8b94794aac34b840ad
|
|
BLAKE2b-256 checksum How to use checksums |
fdd221f1b0945491e95f0bfa1279749481a461ee54db5a587d3ea44c4ed2d78d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / launchdarkly_ai_litellm_messages-0.1.1-py3-none-any.whl
| Download URL | launchdarkly_ai_litellm_messages-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd626edc87fb4a42268ee2122bc18b9129efe3ad66b4dff44c15b2e2e2262ebf
|
|
BLAKE2b-256 checksum How to use checksums |
a69dbb0d67642a6063b4395c565edfec1f43067ad45893297a62545400a0ec3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for launchdarkly-ai-litellm-messages 0.1.1
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.