Repository navigation
docs(py): check res.error for provider failures in migration guide - #40
Merged
Merged
Conversation
huangjeff5
force-pushed
the
huangjeff/py-provider-error-check
branch
from
November 9, 2026 19:07
342a61f to
bd652a8
Compare
cabljac
previously approved these changes
Nov 10, 2026
huangjeff5
enabled auto-merge (squash)
November 10, 2026 16:46
cabljac
previously approved these changes
Nov 10, 2026
Merged
Co-authored-by: Jacob Cable <32874567+cabljac@users.noreply.github.com>
…y/_tracing.py Co-authored-by: Jacob Cable <32874567+cabljac@users.noreply.github.com>
Co-authored-by: Jacob Cable <32874567+cabljac@users.noreply.github.com>
huangjeff5
force-pushed
the
huangjeff/py-provider-error-check
branch
from
November 11, 2026 06:23
8728ad6 to
6ba23fc
Compare
cabljac
approved these changes
Nov 11, 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.
ai.generate()puts provider failures onres.errorinstead of raising them. The 0.12 migration guide and the Ollama README still said to catchGenkitError, and that handler never runs.Changes
res.error: Once generate starts, it catches a plugin'sGenkitErrorand returns it on the response with its status and message intact. The guide's "Plugin exception types" section now checksres.error.statusinstead of catching.ai.embeddoesn't catch, so an unreachable Ollama server still raisesGenkitError(UNAVAILABLE)there. The Ollama troubleshooting note now says which call does which.enable_google_cloud_telemetrysaid the metric export interval defaults to 60000ms. The code uses 300000ms (DEFAULT_METRIC_EXPORT_INTERVAL_MS), or 5000ms whenGENKIT_ENV=dev.Breaking changes
None.