Skip to main content

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.

Release files for bridgic-llms-litellm 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bridgic-llms-litellm 0.1.0
File Size Uploaded
bridgic_llms_litellm-0.1.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bridgic-llms-litellm 0.1.0
File Interpreter ABI Platform
bridgic_llms_litellm-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / bridgic_llms_litellm-0.1.0.tar.gz

Download URL bridgic_llms_litellm-0.1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f7f065becf3c3629503cc2fefa4d888bd8f6c6103a2360d5ead4428e23ea0af4
BLAKE2b-256 checksum
How to use checksums
f963216096dba73796fd3024f65eb5ca54eecc3c3d8d8d017ea0afd35db095c7
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / bridgic_llms_litellm-0.1.0-py3-none-any.whl

Download URL bridgic_llms_litellm-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0df6061f0314126e2b8cadfdc53d33a1971ec6c34129b7138b2a9d6773dc5bbb
BLAKE2b-256 checksum
How to use checksums
a5423ab42fc1904784aaa62a61b8fd03c9362c6259ff3b6b8a26938a16f41fa2
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page