The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
"""Client for the complexity auto-router e2e tests.
The suite drives the shared /chat/completions and spend-log reads on the ProxyClient,
so this client only carries the ProxyClient the shared lifecycle needs for cleanup.
"""
from __future__ import annotations
from dataclasses import dataclass
from proxy_client import ProxyClient
@dataclass(frozen=True, slots=True)
class ComplexityRouterClient:
proxy: ProxyClient
def build_client(proxy: ProxyClient) -> ComplexityRouterClient:
return ComplexityRouterClient(proxy=proxy)