Repository navigation
feat(py)!: stop exporting bedrock_name, anthropic_name, ollama_name - #6662
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes internal plugin name constants (bedrock_name, anthropic_name, and ollama_name) from the public exports of the genkit-amazon-bedrock, genkit-anthropic, and genkit-ollama packages. The corresponding test files have been updated to import these constants directly from their internal plugin modules instead of the package root. I have no feedback to provide as there are no review comments.
huangjeff5
force-pushed
the
chore/py-unexport-name-helpers
branch
from
October 8, 2026 06:10
f062be0 to
d3d54eb
Compare
apascal07
approved these changes
Oct 9, 2026
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.
Three plugins exported a helper that only prefixes a model id with the plugin name. Nothing outside each plugin's own tests imports them.
googleai_name,vertexai_name, andopen_ai_nameare already private, and #6500 dropsmodel_garden_name. This brings the rest in line.Main Changes
genkit_amazon_bedrockno longer exportsbedrock_name.genkit_anthropicno longer exportsanthropic_name.genkit_ollamano longer exportsollama_name.bedrock//ollama/names instead of importing the helpers, so refactor(py)!: plugin packages expose only their top-level module #6671 only has to resolve import lines.Decisions
from genkit_anthropic import anthropic_namenow raisesImportError; passmodel='anthropic/claude-sonnet-4'instead. This only removes the package-root export.genkit_amazon_bedrock.pluginandgenkit_ollama.plugin_apistay importable until refactor(py)!: plugin packages expose only their top-level module #6671 makes them private. We chose removal over deprecation because the helper is one f-string and no docs or samples use it.__all__changes.Verification
ruff check --preview,ty checkclean on the three packages.