one-api
shenald-dev
⚡ One API for 20+ LLM providers. OpenAI-compatible, single binary edge gateway, streaming & rate-limiting.
- Adaptive Bandit + Hedging - Scores prompt complexity into fast, smart, or reasoning tiers (model: "auto"), samples Thompson-Sampling posteriors, and races a backup provider if TTFT stalls. - X-Routing-Strategy, X-Hedge-Enabled, HEDGE_DELAY_MS
- SimHash LSH Cache - Two-tier cache combining 0.30µs Tier-1 SHA-256 exact LRU with Tier-2 64-bit SimHash + 4-band LSH semantic matching (135.7x faster than linear scan) plus vector caching on /v1/embeddings. - CACHE_ENABLED, SEMANTIC_CACHE_ENABLED, X-Allow-Semantic-Cache









