-
Notifications
You must be signed in to change notification settings - Fork 782
Description
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.