Skip to content

v0.1.32 - Update Platform API contract (#57)

Choose a tag to compare

@github-actions github-actions released this 07 Sep 16:51
· 120 commits to main since this release
39fc1e9

🌟 Summary

v0.1.32 updates the Ultralytics Platform API and Python SDK with Core AI export support, easier credential reuse from yolo login, and more reliable automated SDK publishing. 🚀

📊 Key Changes

  • Platform API contract updated to 0.1.32 and the Python package version was synchronized accordingly.
  • Added coreai as a supported export format across:
    • OpenAPI definitions
    • Synchronous and asynchronous export requests
    • Generated Python SDK types and documentation
  • Improved SDK authentication 🔐:
    • Reuses credentials saved by yolo login.
    • Supports the following priority order: explicit API key → ULTRALYTICS_API_KEY environment variable → saved Ultralytics settings.
    • Passing an empty API key explicitly disables authentication.
    • Works for both synchronous and asynchronous clients.
    • Reads existing settings without importing the full ultralytics package or creating a separate credential store.
  • Improved automated SDK generation and releases ⚙️:
    • CI now validates that generated SDK files match the API contract.
    • API releases follow the contract’s info.version.
    • Generator-only changes automatically receive a post-release version so improvements can still be published to PyPI.
    • Unchanged synchronization runs do not create unnecessary releases.
  • Updated contract integrity tracking with a regenerated openapi.sha256 checksum.

🎯 Purpose & Impact

  • For Platform users: coreai exports can now be requested through the Python SDK with proper typing and validation. 📦
  • For existing Ultralytics users: Clients can automatically reuse the API key from yolo login, reducing repeated credential setup.
  • For developers: Authentication behavior is more predictable, and explicit credentials can safely override environment or saved settings.
  • For SDK consumers: Generated packages stay synchronized with the live API and receive updates more reliably, reducing version drift and installation surprises.
  • For maintainers: CI now provides a deterministic contract-to-SDK workflow, helping ensure that published releases are tested and reproducible. ✅

What's Changed

Full Changelog: v0.1.31...v0.1.32