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
vertex_httpx_mock_post
Ishaan Jafferf1578b49e23e
diff --git a/tests/local_testing/test_amazing_vertex_completion.py b/tests/local_testing/test_amazing_vertex_completion.pyindex d7b1f95d5f6..8262d43a0d6 100644--- a/tests/local_testing/test_amazing_vertex_completion.py+++ b/tests/local_testing/test_amazing_vertex_completion.py@@ -977,7 +977,7 @@ def vertex_httpx_mock_reject_prompt_post(*args, **kwargs):# @pytest.mark.skip(reason="exhausted vertex quota. need to refactor to mock the call")-def vertex_httpx_mock_post(url, data=None, json=None, headers=None):+def vertex_httpx_mock_post(url, data=None, json=None, headers=None, **kwargs):mock_response = MagicMock()mock_response.status_code = 200mock_response.headers = {"Content-Type": "application/json"}