Repository navigation
refactor(py)!: rename genkit-vertexai to genkit-model-garden - #137
Closed
huangjeff5 wants to merge 3 commits into
Closed
huangjeff5 wants to merge 3 commits into
huangjeff5 wants to merge 3 commits into
Conversation
This was referenced Nov 17, 2026
Collaborator
Author
|
Consider reusing compat-oai. |
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
genkit-vertexaiis nowgenkit-model-garden. The package only ever held theModelGardenplugin (Claude, Llama and other OpenAI-compatible models through Google Cloud), so the new name says what's in it and drops the retired Vertex AI brand before 1.0. TheModelGardenclass, its arguments and themodelgarden/model names don't change, andgenkit-vertexaistays as a deprecated alias through 0.x.Why
genkit-model-gardenVertexAIingenkit-google-genai.ModelGardenand the namespace ismodelgarden/in every SDK, so the pip name, import path, class and refs now agree.Rejected:
genkit-google-genai. Model Garden runs on the Anthropic and OpenAI SDKs and shares only GCP auth with the Gemini package.genkit-gemini-platform. "Gemini platform" isn't a branded name, and this package serves no Gemini.genkit-google-cloud-models. Vague, and it no longer matchesModelGarden/modelgarden/.Changes
genkit-model-garden, imported asgenkit_model_garden. The[anthropic]and[openai]extras are unchanged.genkit-vertexaibecomes a deprecated alias. It depends ongenkit-model-gardenwith the same extras, re-exportsModelGarden, and warns on import.genkit[model-garden]replacesgenkit[vertexai]andgenkit[vertex-ai].genkit-google-genai. The Model Garden docs link was returning a 404 and now points at the current page.Internal only: the
_model_garden/subpackage is flattened into the package root.What the package serves: the plugin routes on the model's publisher prefix.
anthropic/...(Claude) goes through the Anthropic SDK's Vertex client and needs[anthropic]. Every other publisher goes to Model Garden's OpenAI-compatible endpoint and needs[openai]. Only two Llama models are listed in the Dev UI. Any other model name still resolves, with default capabilities.How the alias works
FutureWarning: Python hidesDeprecationWarningby default.FutureWarningis shown, and withstacklevel=2it points at the user's import line.genkit-vertexaijoinsZERO_X_ONLY_PACKAGES(the same guardgenkit-evaluatorsuses), so its pins are capped<1andcheck_consistencyfails a 1.0 version bump while the package still exists.genkit[vertexai]extra. The alias is for existing installs, so the "every package has agenkit[...]extra" guard test now exempts it.Breaking changes
genkit[vertexai]/genkit[vertex-ai]: usegenkit[model-garden]instead. pip and uv only warn on an unknown extra, so the old command installsgenkitwithout Model Garden and the first error is aModuleNotFoundErrorat import.genkit-vertexaiis gone, sofrom genkit_vertexai import ModelGardenhas to becomefrom genkit_model_garden import ModelGarden.Before release
genkit-model-gardenas a pending trusted publisher on PyPI. Without it, the OIDC publish step fails for this package.Out of scope
vertexai/namespace and theVertexAIclass live ingenkit-google-genai, not here. A cross-SDK proposal for them is coming separately.vertexaipackages also contain vector search, evaluators and rerankers.Verification
check_consistencyanduv lock --checkpass. pyright reports 0 errors on both packages. Workspace-wide pyright and pyrefly report the same errors asmain.pip install 'genkit-vertexai[anthropic]'pulls ingenkit-model-garden,genkit-anthropicandanthropic. The import warns at the user's line, andModelGardenis the same class as ingenkit_model_garden.bump_versiondry runs on a copy of the workspace: 0.14.0 passescheck_consistency, and 1.0.0 fails ongenkit-vertexai.