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_imagen_get_complete_url
Ishaan Jaffer44e313382792
diff --git a/tests/test_litellm/llms/vertex_ai/image_generation/test_vertex_ai_image_generation_transformation.py b/tests/test_litellm/llms/vertex_ai/image_generation/test_vertex_ai_image_generation_transformation.pyindex 9f33400594b..c387c466bc8 100644--- a/tests/test_litellm/llms/vertex_ai/image_generation/test_vertex_ai_image_generation_transformation.py+++ b/tests/test_litellm/llms/vertex_ai/image_generation/test_vertex_ai_image_generation_transformation.py@@ -438,20 +438,18 @@ class TestVertexAIImageGenerationIntegration:def test_imagen_get_complete_url(self):"""Test Imagen config URL generation"""config = VertexAIImagenImageGenerationConfig()- with patch.object(- config, "_resolve_vertex_project", return_value="test-project"- ), patch.object(- config, "_resolve_vertex_location", return_value="us-central1"- ):- url = config.get_complete_url(- api_base=None,- api_key=None,- model="imagegeneration@006",- optional_params={},- litellm_params={},- )- assert "test-project" in url- assert "us-central1" in url- assert "imagegeneration@006" in url- assert "predict" in url+ url = config.get_complete_url(+ api_base=None,+ api_key=None,+ model="imagegeneration@006",+ optional_params={},+ litellm_params={+ "vertex_project": "test-project",+ "vertex_location": "us-central1",+ },+ )+ assert "test-project" in url+ assert "us-central1" in url+ assert "imagegeneration@006" in url+ assert "predict" in url