LiteLLM adapters for Bridgic, enabling connectivity with 100+ LLM providers.
Project description
LiteLLM Integration
LiteLLM adapters for Bridgic, enabling connectivity with 100+ LLM providers through a single unified interface.
Installation
pip install bridgic-llms-litellm
Usage
from bridgic.llms.litellm import LiteLLM
from bridgic.core.model.types import Message, Role
# API keys are read from environment variables (e.g. OPENAI_API_KEY)
llm = LiteLLM()
response = llm.chat(
model="openai/gpt-4o",
messages=[Message.from_text("Hello!", role=Role.USER)],
)
print(response.message.content)
See https://docs.litellm.ai/docs/providers for the full provider list.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bridgic_llms_litellm-0.1.0.tar.gz.
File metadata
- Download URL: bridgic_llms_litellm-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7f065becf3c3629503cc2fefa4d888bd8f6c6103a2360d5ead4428e23ea0af4
|
|
| MD5 |
a27e367184de3df4d9ae81f22a9448fc
|
|
| BLAKE2b-256 |
f963216096dba73796fd3024f65eb5ca54eecc3c3d8d8d017ea0afd35db095c7
|
File details
Details for the file bridgic_llms_litellm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bridgic_llms_litellm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0df6061f0314126e2b8cadfdc53d33a1971ec6c34129b7138b2a9d6773dc5bbb
|
|
| MD5 |
2080b1d5eb80f578294b9cfa614b94a6
|
|
| BLAKE2b-256 |
a5423ab42fc1904784aaa62a61b8fd03c9362c6259ff3b6b8a26938a16f41fa2
|