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: gooogle GenAI route tests
Ishaan Jaffer00f44861eab2
diff --git a/tests/unified_google_tests/base_google_test.py b/tests/unified_google_tests/base_google_test.pyindex 28c70b1cea7..8bd80f6f64c 100644--- a/tests/unified_google_tests/base_google_test.py+++ b/tests/unified_google_tests/base_google_test.py@@ -17,7 +17,8 @@ from litellm.google_genai import (generate_content_stream,agenerate_content_stream,)-from google.genai.types import ContentDict, PartDict, GenerateContentResponse+from google.genai.types import ContentDict, PartDict+from litellm.types.google_genai.main import GenerateContentResponsefrom litellm.integrations.custom_logger import CustomLoggerfrom litellm.types.utils import StandardLoggingPayload@@ -107,11 +108,11 @@ class BaseGoogleGenAITest:def _validate_non_streaming_response(self, response: Any):"""Validate non-streaming response structure"""- # Handle type checking - response should be a dict for non-streaming+ # Handle type checking - response should be a GenerateContentResponse for non-streamingif isinstance(response, AsyncIterator):pytest.fail("Expected non-streaming response but got AsyncIterator")- assert isinstance(response, GenerateContentResponse), f"Expected dict response, got {type(response)}"+ assert isinstance(response, GenerateContentResponse), f"Expected GenerateContentResponse, got {type(response)}"print(f"Response: {response.model_dump_json(indent=4)}")# Basic validation - adjust based on actual Google GenAI response structure