Please add support for inline batch requests when using GoogleGenAI with vertexai: true, so existing inline batch flows can be migrated to Vertex AI without adding GCS/BigQuery input/output plumbing.
Environment details
- Programming language: TypeScript
- OS: macOS
- Language runtime version: Node.js 22
- Package version: latest
Steps to reproduce
-
Create a GoogleGenAI client with Vertex AI enabled:
const ai = new GoogleGenAI({
vertexai: true,
project: 'PROJECT_ID',
location: 'LOCATION',
})
-
Call ai.batches.create() with inline requests as src:
await ai.batches.create({
model: 'gemini-2.5-pro',
src: [
{
contents: [{ text: 'Say hello' }],
},
],
})
-
Observe that inline batch requests do not appear to be supported when using vertexai: true, even though they are supported by the Gemini Developer API through the same high-level SDK method.
Please add support for inline batch requests when using
GoogleGenAIwithvertexai: true, so existing inline batch flows can be migrated to Vertex AI without adding GCS/BigQuery input/output plumbing.Environment details
Steps to reproduce
Create a
GoogleGenAIclient with Vertex AI enabled:Call
ai.batches.create()with inline requests assrc:Observe that inline batch requests do not appear to be supported when using
vertexai: true, even though they are supported by the Gemini Developer API through the same high-level SDK method.