Skip to main content

Unified LLM client with key rotation, health-aware failover, and multi-provider orchestration.

Project description

llm-rotate

llm-rotate is a Python library for resilient LLM calls across providers. It provides API key rotation, health-aware selection, retry/failover, and a unified chat interface.

What it does

  • Unified API for OpenAI, Anthropic, Google AI Studio, Vertex AI, and OpenRouter
  • Automatic key rotation on rate-limit/auth/transient failures
  • Provider fallback chains
  • Streaming and sync/async chat support
  • Structured per-call usage logging

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

llm_rotate-0.1.1.tar.gz (117.8 kB view details)

Uploaded Source

Built Distribution

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

llm_rotate-0.1.1-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file llm_rotate-0.1.1.tar.gz.

File metadata

  • Download URL: llm_rotate-0.1.1.tar.gz
  • Upload date:
  • Size: 117.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for llm_rotate-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e8f3a367e41dba8c1e8efd2415f2a3cb71a800caef12f9f9e5eb78a13c69dd09
MD5 478ed072d78a7c0791d303e9819c462a
BLAKE2b-256 3600ace99be6cd2e3344ad0177ca057027a5c064af49e5256e963bab8cc6608d

See more details on using hashes here.

File details

Details for the file llm_rotate-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: llm_rotate-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for llm_rotate-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81ca282154f7f3429c8d7fc38f86370f453fd09af08c316941168505e80aad6c
MD5 b7cf317537592917b412272e47f2736b
BLAKE2b-256 e09426477e0f15b6ba40a5a0c5fb7487aad1b4a7f5e6bec259129972fa2e95e0

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