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]

style(e2e): wrap the openai passthrough content assertion under 120 columns

Yuneng Jiang9ac893df1562
diff --git a/tests/e2e/llm_translation/test_passthrough_e2e.py b/tests/e2e/llm_translation/test_passthrough_e2e.py
index e50e83eaf77..447fe7d30d9 100644
--- a/tests/e2e/llm_translation/test_passthrough_e2e.py
+++ b/tests/e2e/llm_translation/test_passthrough_e2e.py
@@ -361,8 +361,14 @@ class TestOpenAIProviderPrefixChat:
completion = ChatResponse.model_validate_json(result.body)
assert completion.id, f"/openai/v1/chat/completions relayed no completion id: {result.body[:300]}"
- content = completion.choices[0].message.content if completion.choices and completion.choices[0].message else None
- assert content and content.strip(), f"/openai/v1/chat/completions relayed an empty completion: {result.body[:300]}"
+ content = (
+ completion.choices[0].message.content
+ if completion.choices and completion.choices[0].message
+ else None
+ )
+ assert content and content.strip(), (
+ f"/openai/v1/chat/completions relayed an empty completion: {result.body[:300]}"
+ )
assert completion.usage is not None, f"the completion carried no usage to price from: {completion}"
row = _fetch_cost_breakdown(client, completion.id)