PolyLLM Core for Python
PolyLLM Python 版核心包提供统一请求/响应协议、模型注册表、别名解析、参数策略和插件客户端。核心不内置任何厂商逻辑,所有供应商能力都由独立插件提供。
from polyllm_core import create_llm
from polyllm_openai import OpenAIPlugin
llm = create_llm(
plugins=[OpenAIPlugin()],
providers={"openai": {"api_key": "..."}},
)
response = await llm.chat(
"openai:gpt-4o-mini",
messages=[{"role": "user", "content": "你好"}],
)
Metadata
Release files for polyllm-core 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| polyllm_core-0.3.0.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polyllm_core-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.6 kB
Release files / polyllm_core-0.3.0.tar.gz
| Download URL | polyllm_core-0.3.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91e890b863a0f7a1a628ae31f9d408740f1c9d5e245d97edd901b0c219620e1d
|
|
BLAKE2b-256 checksum How to use checksums |
80a7c1bfa8daad4edbb60a2fe9c990f08da07010305de4f020c934e2abbe8254
|
| 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 15, 2026.
Transparency logRelease files / polyllm_core-0.3.0-py3-none-any.whl
| Download URL | polyllm_core-0.3.0-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb1a7ecb691cfe3a333c394248cd188071674ea707533138cc8e29bb0db3e89f
|
|
BLAKE2b-256 checksum How to use checksums |
e54017818863877c22b47a9444f29f74e4af51dffb483610a2c6b15c9a357a07
|
| 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 15, 2026.
Transparency log