Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: inference-gateway/sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.11.1
Choose a base ref
...
head repository: inference-gateway/sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.12.0-rc.1
Choose a head ref
  • 10 commits
  • 4 files changed
  • 3 contributors

Commits on Aug 22, 2025

  1. 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>
    claude[bot] and edenreich authored Aug 22, 2025
    Configuration menu
    Copy the full SHA
    0d1a57a View commit details
    Browse the repository at this point in the history
  2. refactor(retry): Clean up comments

    Signed-off-by: Eden Reich <eden.reich@gmail.com>
    edenreich committed Aug 22, 2025
    Configuration menu
    Copy the full SHA
    b5a32db View commit details
    Browse the repository at this point in the history
  3. 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>
    claude[bot] and edenreich authored Aug 22, 2025
    Configuration menu
    Copy the full SHA
    1d3cefa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fbbe49f View commit details
    Browse the repository at this point in the history
  5. 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>
    edenreich authored Aug 22, 2025
    Configuration menu
    Copy the full SHA
    05b9687 View commit details
    Browse the repository at this point in the history
  6. refactor(retry): Remove redundant comments in isRetryableStatusCode f…

    …unction
    
    Signed-off-by: Eden Reich <eden.reich@gmail.com>
    edenreich committed Aug 22, 2025
    Configuration menu
    Copy the full SHA
    930dc15 View commit details
    Browse the repository at this point in the history
  7. fix(headers): Remove redundant comment in TestWithHeaders

    Signed-off-by: Eden Reich <eden.reich@gmail.com>
    edenreich committed Aug 22, 2025
    Configuration menu
    Copy the full SHA
    468f356 View commit details
    Browse the repository at this point in the history
  8. refactor(retry): Remove comments from retryable status code tests for…

    … clarity
    
    Signed-off-by: Eden Reich <eden.reich@gmail.com>
    edenreich committed Aug 22, 2025
    Configuration menu
    Copy the full SHA
    5948350 View commit details
    Browse the repository at this point in the history
  9. 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))
    edenreich committed Aug 22, 2025
    Configuration menu
    Copy the full SHA
    d36f1ab View commit details
    Browse the repository at this point in the history
  10. 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))
    edenreich committed Aug 22, 2025
    Configuration menu
    Copy the full SHA
    6bfdee7 View commit details
    Browse the repository at this point in the history
Loading