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(vertex-batches): set is_redirect=False on mocked retrieve response
Yuneng Jiang5975d69ea59d
diff --git a/tests/batches_tests/test_openai_batches_and_files.py b/tests/batches_tests/test_openai_batches_and_files.pyindex 0aed224c256..a64f208b3f1 100644--- a/tests/batches_tests/test_openai_batches_and_files.py+++ b/tests/batches_tests/test_openai_batches_and_files.py@@ -557,6 +557,7 @@ async def test_avertex_batch_prediction(monkeypatch):mock_get_response = MagicMock()mock_get_response.json.return_value = mock_vertex_batch_responsemock_get_response.status_code = 200+ mock_get_response.is_redirect = Falsemock_get_response.raise_for_status.return_value = Nonemock_get.return_value = mock_get_response