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": "你好"}])
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 polyllm_openai_compatible-0.1.0.tar.gz.
File metadata
- Download URL: polyllm_openai_compatible-0.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e23f88aa325d2ee4377026f87d8a4225650b718b03abbad3c59a898a89ac1fb9
|
|
| MD5 |
89bfcbb9d6eda283e7a4e74c5db668fc
|
|
| BLAKE2b-256 |
80af5d6f753bf03e11ca600b682563c9c4d05e16366a04a56b2e2582b599691e
|
Provenance
The following attestation bundles were made for polyllm_openai_compatible-0.1.0.tar.gz:
Publisher:
release-python.yml on you-want/PolyLLM
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polyllm_openai_compatible-0.1.0.tar.gz -
Subject digest:
e23f88aa325d2ee4377026f87d8a4225650b718b03abbad3c59a898a89ac1fb9 - Sigstore transparency entry: 2859238127
- Sigstore integration time:
-
Permalink:
you-want/PolyLLM@07963fe52833cf3a44baf4333268167d12ab4931 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/you-want
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@07963fe52833cf3a44baf4333268167d12ab4931 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file polyllm_openai_compatible-0.1.0-py3-none-any.whl.
File metadata
- Download URL: polyllm_openai_compatible-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c95b87c138a3655800a5c8c5e82eaeee1c4cae4d909f97db42ea558ddcd5acb
|
|
| MD5 |
c2768663669f3b0b29721e771bb5e1c1
|
|
| BLAKE2b-256 |
1c2434a6bcd6ac324de605614ca110817e466f72abb81e66fb4f32f2e1317d62
|
Provenance
The following attestation bundles were made for polyllm_openai_compatible-0.1.0-py3-none-any.whl:
Publisher:
release-python.yml on you-want/PolyLLM
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polyllm_openai_compatible-0.1.0-py3-none-any.whl -
Subject digest:
4c95b87c138a3655800a5c8c5e82eaeee1c4cae4d909f97db42ea558ddcd5acb - Sigstore transparency entry: 2859238159
- Sigstore integration time:
-
Permalink:
you-want/PolyLLM@07963fe52833cf3a44baf4333268167d12ab4931 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/you-want
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@07963fe52833cf3a44baf4333268167d12ab4931 -
Trigger Event:
workflow_dispatch
-
Statement type: