Skip to content

v0.1.45 - Update Platform API contract (#69)

Choose a tag to compare

@github-actions github-actions released this 16 Sep 08:14
· 109 commits to main since this release
ff50dc8

🌟 Summary

v0.1.45 updates the Ultralytics Platform Python SDK with configurable request retries, improving reliability while giving developers control over which HTTP operations can safely be repeated. 🔁

📊 Key Changes

  • Configurable retry methods added to both the synchronous Client and asynchronous AsyncClient.
  • By default, retries remain enabled for the repeat-safe methods:
    • GET
    • HEAD
    • OPTIONS
  • Developers can now provide their own retry_methods list when initializing either client.
  • Retry configuration is applied consistently to both sync and async API requests.
  • Retries cover network errors and HTTP 408, 409, 429, and 5xx responses.
  • The SDK version was incremented from 0.1.44 to 0.1.45.
  • The live OpenAPI contract and generated Python SDK are synchronized and validated through CI. ✅

🎯 Purpose & Impact

  • Improved reliability: Temporary connection problems, rate limits, and server-side failures can be handled automatically.
  • Greater flexibility: Applications can opt in to retries for additional methods when their operations are safe to repeat.
  • Reduced risk: The default behavior avoids retrying potentially non-repeatable requests, helping prevent duplicate actions.
  • Consistent developer experience: Synchronous and asynchronous clients now support the same retry controls.
  • More dependable releases: Deterministic SDK generation and CI validation help ensure the published package matches the API contract.

⚠️ Developers should only add methods to retry_methods when the request and its body can safely be sent again.

What's Changed

Full Changelog: v0.1.44...v0.1.45