-
Notifications
You must be signed in to change notification settings - Fork 1
Comparing changes
Open a pull request
base repository: inference-gateway/sdk
base: v1.11.1
head repository: inference-gateway/sdk
compare: v1.12.0-rc.1
- 10 commits
- 4 files changed
- 3 contributors
Commits on Aug 22, 2025
-
feat(retry): Add retry logic with exponential backoff for HTTP requests
- Add RetryConfig type with configurable retry parameters - Update ClientOptions to include RetryConfig field - Implement retry helper functions for error detection and backoff calculation - Add executeWithRetry method with exponential backoff logic - Integrate retry logic into all HTTP methods (ListModels, ListProviderModels, ListTools, GenerateContent, GenerateContentStream, HealthCheck) - Add comprehensive tests covering various retry scenarios - Default retry configuration: enabled with 3 max attempts, 2s initial backoff, 30s max backoff, 2x multiplier - Retry on status codes: 408, 429, 500, 502, 503, 504 - Retry on network errors: timeouts, connection failures, DNS errors - Respect context cancellation during retries Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0d1a57a - Browse repository at this point
Copy the full SHA 0d1a57aView commit details -
refactor(retry): Clean up comments
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b5a32db - Browse repository at this point
Copy the full SHA b5a32dbView commit details -
feat(retry): Add configurable status codes and callback mechanism
- Add RetryableStatusCodes field to RetryConfig for custom status codes - Add OnRetry callback for retry event logging and monitoring - Maintain backward compatibility with default behavior - Update isRetryableStatusCode to use configurable codes - Add comprehensive test coverage for new functionality Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1d3cefa - Browse repository at this point
Copy the full SHA 1d3cefaView commit details -
Configuration menu - View commit details
-
Copy full SHA for fbbe49f - Browse repository at this point
Copy the full SHA fbbe49fView commit details -
chore: Testing the release (#22)
* refactor(tests): Remove unnecessary blank line in TestIsRetryableStatusCode Signed-off-by: Eden Reich <eden.reich@gmail.com> * chore(release): 🔖 1.12.0-rc.1 [skip ci] ## [1.12.0-rc.1](v1.11.1...v1.12.0-rc.1) (2025-08-22) ### ✨ Features * **retry:** Add configurable status codes and callback mechanism ([1d3cefa](1d3cefa)) * **retry:** Add retry logic with exponential backoff for HTTP requests ([0d1a57a](0d1a57a)) ### ♻️ Improvements * **retry:** Clean up comments ([b5a32db](b5a32db)) * **tests:** Remove unnecessary blank line in TestIsRetryableStatusCode ([223ab26](223ab26)) ### 🔧 Miscellaneous * Remove redundant comments ([fbbe49f](fbbe49f)) --------- Signed-off-by: Eden Reich <eden.reich@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 05b9687 - Browse repository at this point
Copy the full SHA 05b9687View commit details -
refactor(retry): Remove redundant comments in isRetryableStatusCode f…
…unction Signed-off-by: Eden Reich <eden.reich@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 930dc15 - Browse repository at this point
Copy the full SHA 930dc15View commit details -
fix(headers): Remove redundant comment in TestWithHeaders
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 468f356 - Browse repository at this point
Copy the full SHA 468f356View commit details -
refactor(retry): Remove comments from retryable status code tests for…
… clarity Signed-off-by: Eden Reich <eden.reich@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5948350 - Browse repository at this point
Copy the full SHA 5948350View commit details -
chore(release): 🔖 1.12.0-rc.1 [skip ci]
## [1.12.0-rc.1](v1.11.1...v1.12.0-rc.1) (2025-08-22) ### ✨ Features * **retry:** Add configurable status codes and callback mechanism ([1d3cefa](1d3cefa)) * **retry:** Add retry logic with exponential backoff for HTTP requests ([0d1a57a](0d1a57a)) ### ♻️ Improvements * **retry:** Clean up comments ([b5a32db](b5a32db)) ### 🐛 Bug Fixes * **headers:** Remove redundant comment in TestWithHeaders ([a6a6cbb](a6a6cbb)) ### 🔧 Miscellaneous * Remove redundant comments ([fbbe49f](fbbe49f)) * Testing the release ([#22](#22)) ([05b9687](05b9687))
Configuration menu - View commit details
-
Copy full SHA for d36f1ab - Browse repository at this point
Copy the full SHA d36f1abView commit details -
chore(release): 🔖 1.12.0-rc.1 [skip ci]
## [1.12.0-rc.1](v1.11.1...v1.12.0-rc.1) (2025-08-22) ### ✨ Features * **retry:** Add configurable status codes and callback mechanism ([1d3cefa](1d3cefa)) * **retry:** Add retry logic with exponential backoff for HTTP requests ([0d1a57a](0d1a57a)) ### ♻️ Improvements * **retry:** Clean up comments ([b5a32db](b5a32db)) * **retry:** Remove comments from retryable status code tests for clarity ([5948350](5948350)) * **retry:** Remove redundant comments in isRetryableStatusCode function ([930dc15](930dc15)) ### 🐛 Bug Fixes * **headers:** Remove redundant comment in TestWithHeaders ([468f356](468f356)) ### 🔧 Miscellaneous * **release:** 🔖 1.12.0-rc.1 [skip ci] ([d36f1ab](d36f1ab)) * Remove redundant comments ([fbbe49f](fbbe49f)) * Testing the release ([#22](#22)) ([05b9687](05b9687))
Configuration menu - View commit details
-
Copy full SHA for 6bfdee7 - Browse repository at this point
Copy the full SHA 6bfdee7View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.11.1...v1.12.0-rc.1