Skip to main content

PolyLLM OpenAI-Compatible Plugin for Python

适用于 Qwen、Moonshot、OpenRouter、Groq、vLLM、Ollama 等所有兼容 OpenAI Chat Completions 协议的服务。

from polyllm_core import create_llm
from polyllm_openai_compatible import OpenAICompatiblePlugin

plugin = OpenAICompatiblePlugin()
llm = create_llm(
    plugins=[plugin],
    providers={"openai-compatible": {"api_key": "...", "base_url": "https://your-endpoint/v1"}},
    allow_unlisted_models=True,
)
response = await llm.chat("openai-compatible:your-model", messages=[{"role": "user", "content": "你好"}])

Metadata

Release files for polyllm-openai-compatible 0.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 polyllm-openai-compatible 0.5.1
File Size Uploaded Provenance
polyllm_openai_compatible-0.5.1.tar.gz 5.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for polyllm-openai-compatible 0.5.1
File Interpreter ABI Platform
polyllm_openai_compatible-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / polyllm_openai_compatible-0.5.1.tar.gz

Download URL polyllm_openai_compatible-0.5.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4e9f3ccbd17380889b4cf3d60a32c934e8286d6db54562485b5734205b0a7d96
BLAKE2b-256 checksum
How to use checksums
7885a30c8f6e2c6cdbd56b63839bb32b2a39899e9cd6b12d0b7b61b897ef2308
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / polyllm_openai_compatible-0.5.1-py3-none-any.whl

Download URL polyllm_openai_compatible-0.5.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0247c1ee71df745659fc12ecd14823fa68323270db2ee22b274f666ddca1a7e6
BLAKE2b-256 checksum
How to use checksums
9fdb56ad70355714c78190ac4f875da9edc91f92a6c1fa98c8d3015ac32c2d50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for polyllm-openai-compatible 0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for polyllm_openai_compatible-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

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.

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