diff --git a/google/genai/_api_client.py b/google/genai/_api_client.py index b998139e5..8950b5276 100644 --- a/google/genai/_api_client.py +++ b/google/genai/_api_client.py @@ -1246,12 +1246,12 @@ def _build_request( ) else: patched_http_options = self._http_options - # Skip adding project and locations when getting Vertex AI base models. + # Skip adding project and locations when getting Vertex AI base/publisher models. query_vertex_base_models = False if ( self.vertexai and http_method == 'get' - and path.startswith('publishers/google/models') + and path.startswith('publishers/') ): query_vertex_base_models = True if (