v2.1.217
·
3 commits
to master
since this release
AI Hosting Plan & Key Management Updates
This release significantly expands the AI Hosting client capabilities with full plan lifecycle management, enhanced key filtering, and pagination support. Customers and projects can now easily declare hosting profiles, retrieve specific or list all plans with usage statistics, and rename existing plans. Key management operations have been updated to enforce plan association and support advanced querying.
New Endpoints
- Profile Declaration:
customerDeclareProfile- Creates an AI hosting profile and accepts the current model terms for a customer. - Plan Retrieval (Customer):
customerGetPlanretrieves details for a specific plan byplanId.customerGetPlanslists all AI hosting plans with current usage. - Plan Updates (Customer):
customerUpdatePlanallows renaming or updating the description of an AI hosting plan. - Plan Retrieval (Project):
projectGetPlanandprojectGetPlansprovide the same plan detail and listing capabilities scoped to projects.
API Enhancements
- Mandatory Plan Association:
planIdis now a required parameter forCustomerCreateKeyandProjectCreateKeyoperations. - Targeted Key Retrieval:
CustomerGetKeysandProjectGetKeysnow support filtering keys byplanId. - Pagination Support: Key retrieval endpoints (
CustomerGetKeys,ProjectGetKeys) and plan listing endpoints now acceptlimit,skip, andpagequery parameters for efficient data handling. - Schema Alignment:
CustomerGetUsageOKResponsenow correctly maps to the updatedCustomerPlanschema instead of the legacyPlanOptionstype.
Deprecations
customerGetUsageandprojectGetUsageare deprecated. These legacy endpoints should be replaced with the new plan-specific routes:/v2/customers/{customerId}/ai-hostingsand/v2/projects/{projectId}/ai-hostings. Existing integrations will continue to function but will begin emitting deprecation notices.