Repository navigation
v0.1.45 - Update Platform API contract (#69)
🌟 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
Clientand asynchronousAsyncClient. - By default, retries remain enabled for the repeat-safe methods:
GETHEADOPTIONS
- Developers can now provide their own
retry_methodslist 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.
retry_methods when the request and its body can safely be sent again.
What's Changed
- Update Platform API contract by @UltralyticsAssistant in #69
Full Changelog: v0.1.44...v0.1.45