Skip to main content

A unified interface for multiple LLM providers

Project description

multillm-core

A unified interface for multiple LLM providers (OpenAI, Anthropic, Gemini).

Installation

pip install multillm-core

Install with specific providers:

pip install "multillm-core[openai]"
pip install "multillm-core[anthropic]"
pip install "multillm-core[gemini]"
pip install "multillm-core[all]"

Example Usage

import asyncio
from multillm import create_client

async def main():
    client = create_client("openai", api_key="your-key")
    response = await client.generate(
        model="gpt-4o",
        prompt="Explain quantum entanglement in one sentence."
    )
    print(f"[{response.provider}] {response.text}")
    print(f"Usage: {response.usage}")

if __name__ == "__main__":
    asyncio.run(main())

Supported Providers

  • OpenAI
  • Anthropic
  • Google Gemini

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multillm_core-0.1.0.tar.gz (94.8 kB view details)

Uploaded Source

Built Distribution

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

multillm_core-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multillm_core-0.1.0.tar.gz
  • Upload date:
  • Size: 94.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for multillm_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ee66b51acb86b0ffcc8a93f1fa7d753e4b08b73641c39008a6b0b4f21ffc2cdc
MD5 5af9a47049cfaab46396cc86b2230e7f
BLAKE2b-256 6a7f76892639c0f6d0e7d04bcf8d7c471fe89628dfafcbdf441398c652eb65f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multillm_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for multillm_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a23adbd269ad39d17d87e99c6df4aba0a051873296f2c2dbe80eaa80bf85db5b
MD5 3abe94f719406300d9c544e56ec6f6ad
BLAKE2b-256 562d78f98f4cdecbfbec1531aa0cbdeca53eb0283d80e78fcd57f23c0e31ca60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page