Skip to main content

Unified SDK for multi-provider LLM comparison (Cerebras, AWS Bedrock) with OpenAI-compatible interface.

Project description

Unified AI SDK

OpenAI-compatible Python SDK that unifies multiple providers (Cerebras, AWS Bedrock) with Solo and Comparison modes and built-in telemetry.

Highlights

  • OpenAI-like API surface: UnifiedAI().chat.completions.create(...)
  • Providers via adapters: Cerebras, Bedrock (extensible)
  • Modes: Solo and side-by-side Comparison
  • Telemetry: total round-trip time, time-to-first-byte, tokens, costs (extensible)

Install

pip install unifiedai

Install from GitHub (optional)

pip install git+https://github.com/<your-org-or-user>/<your-repo>.git#subdirectory=cerebras

Note: The subdirectory=cerebras flag installs the package defined under cerebras/pyproject.toml.

Quickstart

from unifiedai import UnifiedAI

client = UnifiedAI(provider="cerebras", model="llama3")
resp = client.chat.completions.create(messages=[{"role": "user", "content": "Hello"}])
print(resp.choices[0].message["content"])  # OpenAI-like shape

Project Structure

  • src/unifiedai/: SDK implementation
  • tests/: unit tests
  • examples/: usage examples
  • apps/chat/: demo chat UI

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

unifiedai_sdk-1.0.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

unifiedai_sdk-1.0.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file unifiedai_sdk-1.0.1.tar.gz.

File metadata

  • Download URL: unifiedai_sdk-1.0.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for unifiedai_sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3149730dbae96943503f897ca9c0ac7392498fa50b596e12e10ce4c19f5a46fc
MD5 51efcd0cc716dfd39214e3a23cef5614
BLAKE2b-256 225760d97b78f4f3db93e343a470eeb954c86872b2199186401fa8fe305810d3

See more details on using hashes here.

File details

Details for the file unifiedai_sdk-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: unifiedai_sdk-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for unifiedai_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57be8fafc948236d5cb25cc72dae43f1d3aae1474ffce0460c0ed276a2475356
MD5 8f350fa1e2b61c393998f688ece12a4d
BLAKE2b-256 ca6685e01217e11af69a4816082f643918ccb28a183de4e6a5643777a87954af

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