Repository navigation
v0.1.38 - Update Platform API contract (#62)
🌟 Summary
Platform SDK 0.1.38 updates the API contract and regenerated Python client with more flexible deployment sizing, deletion previews, and clearer cleanup behavior—while retaining improved rate-limit retries. 🚀
📊 Key Changes
- Deployment resource controls: Deployment creation now supports optional CPU and memory settings in both synchronous and asynchronous clients.
- CPU options: 1, 2, 4, 6, or 8 vCPUs
- Memory options: 2, 4, 8, 16, 24, or 32 GiB
- Deployment resizing: The API schema now supports resize requests, making it possible to adjust deployment resources after creation. ⚙️
- Metered deployment status: Deployment responses now indicate whether endpoint uptime is charged through a new
meteredfield. - Trash deletion previews: The trash endpoint accepts a resource ID and can preview affected projects, models, and deployments before deletion.
- Important deletion behavior update: Deleting a project or model now permanently deletes its associated deployments, including pending replacements. Restoring the project or model does not restore those deployments.
⚠️ - Improved deletion errors: The API now reports incomplete cleanup with a specific
502response when model files remain in Trash because deployment cleanup failed. - Rate-limit resilience: JSON-based requests receiving HTTP
429responses continue to use the shared retry mechanism introduced in the previous release, helping long-running workflows recover from temporary rate limits. 🔁 - Regenerated typed Python SDK: The SDK was deterministically regenerated from the Platform OpenAPI contract, with updated response types and synchronous/asynchronous client methods.
🎯 Purpose & Impact
- More deployment flexibility: Users can select compute resources that better match their inference workload, potentially improving performance or controlling costs.
- Safer lifecycle management: Deletion previews help users understand which resources and deployments will be affected before taking destructive action.
- Clearer operational and billing visibility: The new
meteredfield makes it easier to identify deployments that incur uptime charges. - Better reliability for automation: JSON API calls can recover from temporary rate limits instead of failing immediately, benefiting dataset, training, and deployment workflows.
- Potentially destructive behavior to review: Existing automation that deletes projects or models should account for permanent deployment deletion and the fact that restoration will not bring those deployments back. 🛡️
- Stronger client consistency: The regenerated SDK keeps API definitions, validation, and Python typing aligned with the current Platform contract.
What's Changed
- Release 0.1.35 with JSON rate-limit retries by @glenn-jocher in #61
- Update Platform API contract by @UltralyticsAssistant in #62
Full Changelog: v0.1.34...v0.1.38