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(gemini): drop 100MB allocation in size-limit mock
Yuneng Jiang8c537f70a3e9
diff --git a/tests/llm_translation/test_gemini.py b/tests/llm_translation/test_gemini.pyindex 037b8dad304..01e40628441 100644--- a/tests/llm_translation/test_gemini.py+++ b/tests/llm_translation/test_gemini.py@@ -1621,7 +1621,10 @@ def test_gemini_image_size_limit_exceeded(monkeypatch):"Content-Type": "image/jpeg","Content-Length": str(size_bytes),},- content=b"x" * size_bytes,+ # Empty body: the Content-Length header check in+ # _process_image_response rejects the image before the body+ # is ever streamed, so there's no need to allocate 100MB.+ content=b"",request=Request("GET", url),)