diff --git a/litellm/google_genai/main.py b/litellm/google_genai/main.py index 627c2919fd4..3daf43c729e 100644 --- a/litellm/google_genai/main.py +++ b/litellm/google_genai/main.py @@ -203,7 +203,9 @@ class GenerateContentHelper: MappingProxyType(litellm_params.model_dump(exclude_none=True)) ) vertex_location_params: Final = ( - {"vertex_location": explicit_vertex_location} if explicit_vertex_location else {} + MappingProxyType({"vertex_location": explicit_vertex_location}) + if explicit_vertex_location + else MappingProxyType({}) ) litellm_logging_obj.update_from_kwargs(