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
fix(test): mock headers in test_completion_fine_tuned_model
joereynafb527ae25020
diff --git a/tests/local_testing/test_amazing_vertex_completion.py b/tests/local_testing/test_amazing_vertex_completion.pyindex a1684e23769..98bb40f3613 100644--- a/tests/local_testing/test_amazing_vertex_completion.py+++ b/tests/local_testing/test_amazing_vertex_completion.py@@ -2291,6 +2291,8 @@ def test_prompt_factory_nested():async def test_completion_fine_tuned_model():load_vertex_ai_credentials()mock_response = AsyncMock()+ mock_response.headers = {}+ mock_response.status_code = 200def return_val():return {@@ -2326,7 +2328,6 @@ async def test_completion_fine_tuned_model():}mock_response.json = return_val- mock_response.status_code = 200expected_payload = {"contents": [