Repository navigation
feat(py): deprecate genkit-vertexai; remove it in the next release - #260
Merged
huangjeff5 merged 1 commit intoDec 1, 2026
Merged
Conversation
This was referenced Nov 30, 2026
huangjeff5
force-pushed
the
feat/py-deprecate-vertexai
branch
from
December 1, 2026 20:23
b9341e2 to
7f98b20
Compare
huangjeff5
force-pushed
the
feat/py-deprecate-vertexai
branch
from
December 1, 2026 21:20
7f98b20 to
28ec744
Compare
huangjeff5
force-pushed
the
feat/py-deprecate-vertexai
branch
from
December 1, 2026 21:37
28ec744 to
f32f88f
Compare
huangjeff5
enabled stacked auto-merge (squash)
December 1, 2026 21:52
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 deprecated and will be removed in the next release. Everything continues to work in this release, and constructingModelGarden(...)emits aFutureWarningpointing to both replacements:Anthropic(backend=GoogleCloud())ingenkit-anthropic[google-cloud](feat(py): serve Claude from Google Cloud with Anthropic(backend=GoogleCloud()) #257).OpenAICompatible(backend=GoogleCloud())ingenkit-openai[google-cloud](feat(py): add OpenAICompatible for any OpenAI-compatible server, matching JS and Go #258, feat(py): serve Model Garden's OpenAI-compatible models via OpenAICompatible(backend=GoogleCloud()) #259), keeping the samemodelgarden/<publisher>/<model>refs.Following the same deprecation pattern as
genkit-evaluators(#131),genkit-vertexaiis pinned to the currentgenkitminor version so apps that keep it don't end up pairing it with a newergenkitrelease after removal.Changes
ModelGarden: Emits aFutureWarningonce per construction (withstacklevelpointing at the caller) covering the removal and migration steps for both Claude and OpenAI-compatible models.ZERO_X_ONLY_PACKAGES): Addsgenkit-vertexaitoZERO_X_ONLY_PACKAGESinscripts/check_consistency.py. Itsgenkitdependency and thegenkit[vertexai]/genkit[vertex-ai]extras are capped at>=0.14.0,<0.15;bin/bump_versionadvances the cap on future 0.x releases, andcheck_consistencyblocks a 1.0 release while the package still exists.project/locationcarryover and whyglobalreplacesmodel_locations) and Llama/Mistral (showing unchangedmodelgarden/...refs and multi-instanceOpenAICompatible(name=..., ...)in place ofmodel_locations). Prefixes the PyPI description with"Deprecated, removed in the next release."and names both replacement packages.Decisions
genkit-vertexainow live ingenkit-anthropic(with typed refs and portable.promptfiles) andgenkit-openai'sOpenAICompatible, leaving no remaining functionality for a standalone Vertex package.FutureWarningat construction: EveryModelGardenuser is affected immediately. UsingFutureWarningensures it shows up in web servers and apps outside__main__, where Python suppressesDeprecationWarningby default (PEP 565).genkitminor version ahead of removal: Oncegenkit-vertexaiis dropped next release, no new version will be published to stay compatible with newergenkit. Capping it atgenkit<0.(Y+1)now ensures dependency resolvers keep apps that still declaregenkit-vertexaion a compatiblegenkitminor version (matchinggenkit-evaluatorsin revert: restore evaluators for 0.14 #131).Removal (next release, separate PR)
packages/genkit-vertexai, and drop it from the publish and samples workflows.genkit[vertexai]andgenkit[vertex-ai]frozen at the last release, and exempt them frombump_version/check_consistency, as revert: restore evaluators for 0.14 #131 did forgenkit[evaluators]. That waygenkit[vertexai]keeps resolving to a compatible set instead of a newergenkitwith no plugin.Verification
packages/genkit-vertexai(55 passed, no stray warnings; verifies the warning text, stacklevel, and continued Claude/Llama resolution) andtests/version_bounds_guard_test.py(32 passed, including0.14→0.15minor-cap roll and 1.0 rejection). Full stack suite acrossgenkit-anthropic,genkit-openai,genkit-vertexai, andversion_bounds_guard_test.py: 1,648 passed, 5 skipped.ruff,ty,pyrefly(0 errors),scripts/check_consistency.py,uv lock --check, andaddlicense -checkall pass (pyrightruns in CI).Breaking changes
None this release.
genkit-vertexaibehaves the same, plus a warning. The newgenkitminor cap only limits whichgenkitversions it can be installed alongside.