Skip to content

feat(js/plugins/middleware): added middleware package with retry and fallback middleware#5047

Merged
pavelgj merged 29 commits intopj/gm-expose-interrupt-respond-restart-hlpersfrom
pj/gm-middlware-package-retry-fallback
Apr 10, 2026
Merged

feat(js/plugins/middleware): added middleware package with retry and fallback middleware#5047
pavelgj merged 29 commits intopj/gm-expose-interrupt-respond-restart-hlpersfrom
pj/gm-middlware-package-retry-fallback

Conversation

@pavelgj
Copy link
Copy Markdown
Member

@pavelgj pavelgj commented Apr 1, 2026

Checklist (if applicable):

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the @genkit-ai/middleware package, featuring fallback and retry middleware for Genkit. The fallback middleware enables switching to alternative models on specific errors, and the retry middleware provides exponential backoff. Feedback was provided to ensure that model configurations are merged during fallbacks to avoid losing original request parameters.

@github-actions github-actions bot added the docs Improvements or additions to documentation label Apr 10, 2026
@pavelgj pavelgj merged commit cd78dac into pj/gm-expose-interrupt-respond-restart-hlpers Apr 10, 2026
6 checks passed
@pavelgj pavelgj deleted the pj/gm-middlware-package-retry-fallback branch April 10, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config docs Improvements or additions to documentation js

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants