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.2.tar.gz (16.0 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.2-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unifiedai_sdk-1.0.2.tar.gz
  • Upload date:
  • Size: 16.0 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.2.tar.gz
Algorithm Hash digest
SHA256 7947d4e588e4a34e1650fa6f915478739bf35d99728c8fd93856149ad24ca347
MD5 3d462db3efcb2def2aa3dc268486bb72
BLAKE2b-256 a5cd830f8813ad2806e5aed9a12c6a762ebf2143c3e4ea4705d7a9b4ea00612d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unifiedai_sdk-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 22.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9fae31bb4a990eebfa52dac19bcc73ec1de1fe1295b90aad0f1294994951a0a3
MD5 f5b9e9a83314aa9cae409ad7b6e7abcc
BLAKE2b-256 4d122603ad1d887b0a7e4e9411133bf09f3f0dbae9a279a35996376fa5f9bf04

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