Skip to content

v0.1.21 - Update Platform API contract (#48)

Choose a tag to compare

@github-actions github-actions released this 01 Sep 00:46
· 129 commits to main since this release
8628e60

🌟 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.
  • assetType is 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.
  • 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 assetType values 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 specific assetType field may need to update their requests to use "models".

What's Changed

Full Changelog: v0.1.20...v0.1.21