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.2.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.2.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

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

Hashes for polyllm_core-0.2.0.tar.gz
Algorithm Hash digest
SHA256 89517d6e7ed9ac47ac54d23fdb35cb2aac5c61bb2daf3179a89f5efa516eaab6
MD5 af48bd6ab86e1733d030d52bf35fedf0
BLAKE2b-256 5c1a3bf908819c8fab7bc2702e689b5de0065ffbc197fc6b1fc61fb8c310beb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyllm_core-0.2.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.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

Hashes for polyllm_core-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efb35f09e02c58bc1a8f6648293b5f6cfb260683d9cf4fc46d70e9c5360ed5dc
MD5 afb1ddfa75f84dac4f3d60ced6f3c3bf
BLAKE2b-256 79eaaef9e39dec060731401b76987a4fbdc493ca2a23e95f2dd79adbfd19636c

See more details on using hashes here.

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

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

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