Skip to content

Feature Parity: Enable File Upload API support for Vertex AI clients #2096

@nghiapickup

Description

@nghiapickup

What you're trying to do

I am looking to use the File Upload API within the new google-genai SDK while using the Vertex AI backend.

Even though recent blog posts and documentation (like this one) treat the File API as a standard feature, it currently appears to be restricted to the Gemini (Developer) client.

Due to specific contractual and compliance requirements between my company and Google Cloud, we are standardized on Vertex AI. As a result, having feature parity for file management in the Vertex-enabled SDK is a high priority for our workflow.

Any error messages you're getting

When attempting to use client.files.upload with a Vertex-initialized client, I receive the following error:

"This method is only supported in the Gemini Developer client"

Reference: google/genai/files.py#L194

Proposed Solution

It would be great to see support for client.files methods (upload, get, list, etc.) extended to the Vertex AI backend without having to switch implementation patterns or use separate APIs for file handling.

Metadata

Metadata

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions