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": "你好"}],
)
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_core-0.2.0.tar.gz.
File metadata
- Download URL: polyllm_core-0.2.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89517d6e7ed9ac47ac54d23fdb35cb2aac5c61bb2daf3179a89f5efa516eaab6
|
|
| MD5 |
af48bd6ab86e1733d030d52bf35fedf0
|
|
| BLAKE2b-256 |
5c1a3bf908819c8fab7bc2702e689b5de0065ffbc197fc6b1fc61fb8c310beb3
|
Provenance
The following attestation bundles were made for polyllm_core-0.2.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_core-0.2.0.tar.gz -
Subject digest:
89517d6e7ed9ac47ac54d23fdb35cb2aac5c61bb2daf3179a89f5efa516eaab6 - Sigstore transparency entry: 2876213584
- Sigstore integration time:
-
Permalink:
you-want/PolyLLM@a9178f58b3ac17041626b055efa3a1d177bedd07 -
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@a9178f58b3ac17041626b055efa3a1d177bedd07 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file polyllm_core-0.2.0-py3-none-any.whl.
File metadata
- Download URL: polyllm_core-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.2 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 |
efb35f09e02c58bc1a8f6648293b5f6cfb260683d9cf4fc46d70e9c5360ed5dc
|
|
| MD5 |
afb1ddfa75f84dac4f3d60ced6f3c3bf
|
|
| BLAKE2b-256 |
79eaaef9e39dec060731401b76987a4fbdc493ca2a23e95f2dd79adbfd19636c
|
Provenance
The following attestation bundles were made for polyllm_core-0.2.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_core-0.2.0-py3-none-any.whl -
Subject digest:
efb35f09e02c58bc1a8f6648293b5f6cfb260683d9cf4fc46d70e9c5360ed5dc - Sigstore transparency entry: 2876213652
- Sigstore integration time:
-
Permalink:
you-want/PolyLLM@a9178f58b3ac17041626b055efa3a1d177bedd07 -
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@a9178f58b3ac17041626b055efa3a1d177bedd07 -
Trigger Event:
workflow_dispatch
-
Statement type: