Skip to main content

LLM Bridge

LLM Bridge is a Python library that wraps multiple LLM providers into a consistent API while using each provider's native SDK internally, supporting multimodal I/O, file processing, and stream output.

GitHub: https://github.com/windsnow1025/LLM-Bridge

PyPI: https://pypi.org/project/LLM-Bridge/

Workflow and Features

  1. Chat Client Factory: creates a client for the specific LLM API with model parameters
    1. Model Message Converter: converts general messages to model messages
      1. Media Processor: converts general media to model compatible formats.
  2. Chat Client: generate stream or non-stream responses

Supported Features for API Types

The features listed represent the maximum capabilities of each API type supported by LLM Bridge.

API Type Input Format Capabilities Output Format
OpenAI Completion API Text, Image, PDF, Audio Thinking, Structured Output Text, Audio
OpenAI Responses API Text, Image, PDF Thinking, Web Search, Code Execution, Structured Output Text, Image
Google generateContent API Text, Image, PDF, Audio, Video Thinking, Web Search, Web Fetch, Code Execution, Structured Output Text, Image, File
Google Interactions API Text, Image, PDF, Audio, Video Thinking, Web Search, Web Fetch, Code Execution, Structured Output Text, Image
Anthropic Text, Image, PDF Thinking, Web Search, Web Fetch, Code Execution, Structured Output Text, File
xAI Text, Image, PDF, Audio, Video, docx, xlsx, pptx Thinking, Web Search, Code Execution, Structured Output Text

Development

Python uv

  1. Install uv: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
  2. Install Python in uv: uv python install 3.12; upgrade Python in uv: uv python upgrade 3.12
  3. Configure requirements:
uv sync --refresh

PyCharm

Add New Interpreter >> Add Local Interpreter

  • Environment: Select existing
  • Type: uv

Usage

Copy ./usage/.env.example and rename it to ./usage/.env, then fill in the environment variables.

Build

uv build

Metadata

Release files for LLM-Bridge 2.5.1

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

Source distribution (sdist)

Source distribution for LLM-Bridge 2.5.1
File Size Uploaded Provenance Actions
llm_bridge-2.5.1.tar.gz 137.2 kB Without provenance Details for llm_bridge-2.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for LLM-Bridge 2.5.1
File Interpreter ABI Platform Actions
llm_bridge-2.5.1-py3-none-any.whl Python 3 none any Details for llm_bridge-2.5.1-py3-none-any.whl

Total release size: 193.6 kB

Release files / llm_bridge-2.5.1.tar.gz

Download URL llm_bridge-2.5.1.tar.gz
Size 137.2 kB
Tags Source
SHA-256 checksum
How to use checksums
221c65e7a6a70ede02e774feefd4ae29eba4cfef091085343f3957d6c7903268
BLAKE2b-256 checksum
How to use checksums
247641b54c668e79e3485843a23769eeeff401a51b1334cd87e434bb20a7970d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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_bridge-2.5.1-py3-none-any.whl

Download URL llm_bridge-2.5.1-py3-none-any.whl
Size 56.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5caedcd2197a66b69e0c78459ba9af5825f9bdc17868492581721b0edd06c3a5
BLAKE2b-256 checksum
How to use checksums
dbb4e4d3b700fb993b222e03a05b5fb229d944b880c27b4c69c0fb28112fd9d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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-Bridge 2.5.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.

Release history Release notifications | RSS feed

This release

2.5.1 This release

2 release files No provenance

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