Skip to content

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]

fix(e2e): route credential, cost map, and UI login calls to the control plane (#42506)

devin-ai-integration[bot]e02d5a990c86
diff --git a/tests/e2e/llm_translation/test_credential_messages_e2e.py b/tests/e2e/llm_translation/test_credential_messages_e2e.py
index 52306ce3a7a..58e17f20bb8 100644
--- a/tests/e2e/llm_translation/test_credential_messages_e2e.py
+++ b/tests/e2e/llm_translation/test_credential_messages_e2e.py
@@ -49,5 +49,6 @@ class TestCredentialBackedMessages:
extra_body=NO_PROXY_CACHE,
)
assert message.role == "assistant", f"unexpected role: {message.role!r}"
+ assert message.usage.output_tokens > 0, f"/v1/messages billed no output tokens: {message.usage!r}"
text = "".join(block.text for block in message.content if block.type == "text")
assert text.strip(), f"/v1/messages returned no text: {message.content!r}"
diff --git a/tests/e2e/transport.py b/tests/e2e/transport.py
index 4f3953f68b2..87aad0d08de 100644
--- a/tests/e2e/transport.py
+++ b/tests/e2e/transport.py
@@ -312,8 +312,10 @@ CONTROL_PLANE_PREFIXES: tuple[str, ...] = (
"/global",
"/config",
"/guardrails",
+ "/credentials",
"/router/settings",
"/audit",
+ "/public",
"/v2/login",
"/openapi.json",
)