Repository navigation
v0.1.21 - Update Platform API contract (#48)
🌟 Summary
Version v0.1.21 updates the Ultralytics Platform API contract and Python SDK, while making releases safer and more reliable. 🚀
📊 Key Changes
-
Platform API contract updated to 0.1.21 📘
- The OpenAPI specification and its checksum were refreshed.
- The Python package version was synchronized to
ultralytics-platform 0.1.21. - The Python SDK was regenerated to match the updated API contract.
-
assetTypeis now limited to"models"🧩- This field previously accepted
"models","images", or"videos". - The stricter contract accurately reflects the supported operation and helps catch invalid requests earlier.
- This field previously accepted
-
Improved release and publishing safeguards 🔐
- Publishing now waits for successful CI on the exact commit being released.
- Git tags and GitHub releases are created only after the package has successfully reached PyPI.
- Software Bill of Materials (SBOM) generation is included in the verified release sequence.
-
More reliable live API validation ✅
- Canary tests now pace requests to remain below production API rate limits.
- Maintainers can manually run the live lifecycle on feature branches, while automatic contract updates remain restricted to
main.
🎯 Purpose & Impact
- More accurate SDK behavior: Users receive a Python SDK that stays aligned with the live Platform API.
- Earlier error detection: Invalid
assetTypevalues can be identified through schema validation before requests are sent. - Safer releases: CI, PyPI publishing, tagging, release creation, and SBOM attachment now follow a controlled sequence, reducing the risk of publishing unvalidated code.
- Fewer flaky integration checks: Request pacing prevents the live test suite from exceeding API-key limits and failing due to temporary rate limiting.
- Potential compatibility consideration: Applications that send
"images"or"videos"for this specificassetTypefield may need to update their requests to use"models".
What's Changed
- Harden SDK canary and release gates by @glenn-jocher in #47
- Update Platform API contract by @UltralyticsAssistant in #48
Full Changelog: v0.1.20...v0.1.21