Skip to main content

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

polyllm_core-0.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polyllm_core-0.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file polyllm_core-0.1.0.tar.gz.

File metadata

  • Download URL: polyllm_core-0.1.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

Hashes for polyllm_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1903ee49be933aebc23dc63549a29ef4c952399b86ff378cc16ee11454144154
MD5 0daa919df57d4c8aef49030c14a7d91b
BLAKE2b-256 a978c6959cbaa5b0f30d6d06384d79c1d20d39389dde0c812a62826cb83323b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyllm_core-0.1.0.tar.gz:

Publisher: release-python.yml on you-want/PolyLLM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polyllm_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: polyllm_core-0.1.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

Hashes for polyllm_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e30809a39226bc763877f31200076f36e6c571384b9a9fe7b7ac54192c96684b
MD5 b11ccc3683777b677efad02603bc6d37
BLAKE2b-256 7382e1f746d6ee1d050038635d9a76eac052d705ac5dbcb7ca73b57dbcca0f28

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyllm_core-0.1.0-py3-none-any.whl:

Publisher: release-python.yml on you-want/PolyLLM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

2 files

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