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.3.tar.gz (16.3 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.3-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unifiedai_sdk-1.0.3.tar.gz
  • Upload date:
  • Size: 16.3 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.3.tar.gz
Algorithm Hash digest
SHA256 339762977fa8f6e6d5df7ac985e21342fab9defff6c38a4339afb4b7b3c9c351
MD5 46dbb1f22a73a9041e77e856c8a8ecfb
BLAKE2b-256 358c075032a321b90d2a5c1346144b83c2bda0d1da1e09313f9a0c736071d58a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unifiedai_sdk-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 22.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4e1bf794744d41514b098e94af140573720ced882bcafeaecce00c81abe0e709
MD5 86dcdfad5ddfa2a3c96be66f18a60759
BLAKE2b-256 3ae4333ebd972a855522bc9ce64349104edd17c4759b125f3642877b9b6f46e0

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