hey,
I am building a chat system that is built on Gemini and its large context.
The Agent (2.5 pro) uses Gemini cache and a Big query tool.
And I use client.files to upload files to the cache:
self.client.files.upload(file=local_path)
Now, we have decided to use a vertex-supervised tuning to build a cheaper and faster model based on the flash variant.
But to use vertex models, I need to use Vertex API Mode in the genai init
self.client = genai.Client(api_key=self.api_key)
to:
self.client = genai.Client(
vertexai=True,
project="name bala bla",
location="europe-west4"
)
**The ISSUE:**
When I switch to Vertex Mode I get this error:
Failed to initialize session: This method is only supported in the Gemini Developer client.
after a lot of digging i found this
The Vertex-AI implementation of the API foes not include the file service.
What options do I have?
How can I create a cache while using a Vertex model?