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
test(e2e): keep e2e_config formatting untouched
Devin AI890e5feabe81
diff --git a/tests/e2e/e2e_config.py b/tests/e2e/e2e_config.pyindex 0c7cb39aef1..a4d79b7f139 100644--- a/tests/e2e/e2e_config.py+++ b/tests/e2e/e2e_config.py@@ -28,7 +28,9 @@ MASTER_KEY = os.environ.get("LITELLM_MASTER_KEY", "sk-1234")# single path-routing host (stage ALB, compose monolith) works for both planes.# Set LITELLM_CONTROL_PLANE_URL only when management is a different base than# the LLM host and you are not going through an ingress that path-routes.-CONTROL_PLANE_BASE_URL = os.environ.get("LITELLM_CONTROL_PLANE_URL", PROXY_BASE_URL).rstrip("/")+CONTROL_PLANE_BASE_URL = os.environ.get(+ "LITELLM_CONTROL_PLANE_URL", PROXY_BASE_URL+).rstrip("/")def parse_replica_urls(raw: str, fallback: str) -> tuple[str, ...]:@@ -105,13 +107,18 @@ PROPAGATION_TIMEOUT = float(os.environ.get("E2E_PROPAGATION_TIMEOUT", "15"))# for empty values) means the harness behaves exactly as before this knob# existed.FIXTURE_MODE_RAW = os.environ.get("E2E_FIXTURE_MODE", "live")-FIXTURE_DIR = Path(os.environ.get("E2E_FIXTURE_DIR", "").strip() or str(Path(__file__).resolve().parent / ".fixtures"))+FIXTURE_DIR = Path(+ os.environ.get("E2E_FIXTURE_DIR", "").strip()+ or str(Path(__file__).resolve().parent / ".fixtures")+)# Where the provider-edge server binds, and the host name edge api_base URLs# advertise to the proxy. They differ when the proxy runs in a container and# reaches the pytest host via a gateway name like host.docker.internal.PROVIDER_EDGE_BIND_HOST = os.environ.get("E2E_PROVIDER_EDGE_BIND_HOST", "").strip() or "127.0.0.1"-PROVIDER_EDGE_ADVERTISE_HOST = os.environ.get("E2E_PROVIDER_EDGE_ADVERTISE_HOST", "").strip() or PROVIDER_EDGE_BIND_HOST+PROVIDER_EDGE_ADVERTISE_HOST = (+ os.environ.get("E2E_PROVIDER_EDGE_ADVERTISE_HOST", "").strip() or PROVIDER_EDGE_BIND_HOST+)# Deliberately modest concurrency. The suite shares its proxy with every other# suite in the run, and 750 users at spawn rate 50 saturated the request path hard@@ -143,10 +150,18 @@ ANOMALY_SESSIONS = int(os.environ.get("E2E_ANOMALY_SESSIONS", "6"))ANOMALY_TURNS_PER_SESSION = int(os.environ.get("E2E_ANOMALY_TURNS_PER_SESSION", "6"))ANOMALY_TURN_ATTEMPTS = int(os.environ.get("E2E_ANOMALY_TURN_ATTEMPTS", "3"))ANOMALY_MAX_ERROR_RATIO = float(os.environ.get("E2E_ANOMALY_MAX_ERROR_RATIO", "0.05"))-ANOMALY_MIN_WARM_CACHE_READ_SHARE = float(os.environ.get("E2E_ANOMALY_MIN_WARM_CACHE_READ_SHARE", "0.65"))-ANOMALY_MAX_P95_TURN_SECONDS = float(os.environ.get("E2E_ANOMALY_MAX_P95_TURN_SECONDS", "30"))-ANOMALY_MAX_KEY_SPEND_USD = float(os.environ.get("E2E_ANOMALY_MAX_KEY_SPEND_USD", "0.60"))-ANOMALY_SPEND_SETTLE_SECONDS = float(os.environ.get("E2E_ANOMALY_SPEND_SETTLE_SECONDS", "75"))+ANOMALY_MIN_WARM_CACHE_READ_SHARE = float(+ os.environ.get("E2E_ANOMALY_MIN_WARM_CACHE_READ_SHARE", "0.65")+)+ANOMALY_MAX_P95_TURN_SECONDS = float(+ os.environ.get("E2E_ANOMALY_MAX_P95_TURN_SECONDS", "30")+)+ANOMALY_MAX_KEY_SPEND_USD = float(+ os.environ.get("E2E_ANOMALY_MAX_KEY_SPEND_USD", "0.60")+)+ANOMALY_SPEND_SETTLE_SECONDS = float(+ os.environ.get("E2E_ANOMALY_SPEND_SETTLE_SECONDS", "75")+)MEMORY_REQUESTS_PER_PHASE = int(os.environ.get("E2E_MEMORY_REQUESTS_PER_PHASE", "300"))MEMORY_RETRIES_PER_REQUEST = int(os.environ.get("E2E_MEMORY_RETRIES_PER_REQUEST", "2"))MEMORY_TRANSCRIPT_TURNS = int(os.environ.get("E2E_MEMORY_TRANSCRIPT_TURNS", "40"))@@ -174,12 +189,8 @@ def datadog_mcp_url(*, toolsets: str = "core") -> str:belong to a non-US1 org."""site = (- (os.environ.get("DD_SITE", DD_SITE) or "datadoghq.com")- .strip()- .removeprefix("https://")- .removeprefix("http://")- .rstrip("/")- )+ os.environ.get("DD_SITE", DD_SITE) or "datadoghq.com"+ ).strip().removeprefix("https://").removeprefix("http://").rstrip("/")site = site.removeprefix("app.")host = "mcp.datadoghq.com" if site in ("", "datadoghq.com") else f"mcp.{site}"base = f"https://{host}/v1/mcp"