Skip to content

Add support for retrying 429 in the http client #713

Description

@lucabrunox

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Is your feature request related to a problem? Please describe.

Java and Python have a retry mechanism in the http client itself, while this Go library does not: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/retry-strategy

Describe the solution you'd like

Have the retry mechanism implemented in go-genai itself

Describe alternatives you've considered

Additional context

Metadata

Metadata

Labels

api:gemini-apiIssues related to Gemini APIpriority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions