Skip to content

docs: propose one GoogleGenAI plugin with an enterprise flag - #138

Closed
huangjeff5 wants to merge 6 commits into
mainfrom
docs/proposal-merge-vertexai-into-googleai
Closed

huangjeff5 wants to merge 6 commits into
mainfrom
docs/proposal-merge-vertexai-into-googleai

Conversation

@huangjeff5

@huangjeff5 huangjeff5 commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a proposal at docs/proposals/googlegenai-plugin.md: before Python 1.0, replace GoogleAI and VertexAI in genkit-google-genai with one GoogleGenAI plugin. An enterprise= flag picks the backend, so moving from an AI Studio key to a Google Cloud project is one flag at setup instead of rewriting every ref.

GoogleGenAI()                                                                # AI Studio key
GoogleGenAI(enterprise=True, project='bistro-prod', location='us-central1')  # Google Cloud

await ai.generate(model=GoogleGenAI.gemini('gemini-2.5-flash'), prompt='Suggest a dish.')
# => runs on whichever backend the plugin was configured for

What it proposes

  • One plugin, named after the package: GoogleGenAI, matching google-genai on PyPI and npm, which outlives product renames.
  • enterprise= defaults to False and is set on the plugin only. GoogleGenAI() behaves like GoogleAI() today; Cloud always takes an explicit enterprise=True. Not in model config: config can be rewritten by .prompt files and middleware, and resolve() needs the backend before any request exists.
  • One namespace, googlegenai/: typed refs are classmethods and can't know the backend, so they need one fixed prefix.
  • Lands before 1.0: GoogleAI and VertexAI are removed, not deprecated. No deprecation cycle and no 2.0 alias work.
  • Small implementation: the request code (Gemini, Veo, embedders, backend field checks) is already shared and keys on the client's backend. The work is folding the two plugin classes: auth and which models resolve() offers.

Why now

  • After 1.0, removing two public plugins needs a deprecation cycle and a 2.0. Before 1.0 it's a rename.
  • JS agreed on the same shape for JS 2.0: one googleGenAI plugin with an enterprise flag.
  • Interactions doesn't block it. With enterprise=True, Developer-API-only Interactions models (Deep Research, Antigravity, Lyria) aren't offered, the same as VertexAI today.

Open question

.prompt files that still say googleai/ or vertexai/: return NOT_FOUND (clean), or resolve them as backend-checked aliases so .prompt files shared with JS and Go keep working until those SDKs ship their major versions (small core hook before 1.0)?

Docs only; no code changes. Related: #137 (Model Garden rename, independent).

The SDK backend env vars stay ignored, as today, since the plugin always passes the flag; that is now stated under constructor settings. Alias lifetime moves to the 2.0 step. The open questions are the direction, the flag name, losing both backends in one app, and sequencing with the Interactions stack.
…before 1.0

Replaces the merge-into-GoogleAI proposal with the shape agreed with the JS owner: one GoogleGenAI plugin named after the package, enterprise= required and set on the plugin only, models under googlegenai/. GoogleAI and VertexAI are removed before Python 1.0 instead of deprecated, so no 2.0 alias work is needed. One open question remains: whether googleai/ and vertexai/ refs in shared .prompt files resolve as aliases.
@huangjeff5 huangjeff5 changed the title docs: propose merging VertexAI into GoogleAI(enterprise=...) docs: propose one GoogleGenAI plugin with a required enterprise flag Nov 17, 2026
@huangjeff5 huangjeff5 changed the title docs: propose one GoogleGenAI plugin with a required enterprise flag docs: propose one GoogleGenAI plugin with an enterprise flag Nov 17, 2026
@huangjeff5 huangjeff5 closed this Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant