Llm Models Model Destroy
GET/PATCH/DELETE /llm_models/model/<pk>/ (platform - uses pk)
GET/PATCH/DELETE /api/models/<path:model_name>/ (public API - uses model_name)
Unified endpoint for any model (global or custom).
Lookup field determined by URL kwargs:
- If 'pk' in kwargs: Uses pk lookup
- If 'model_name' in kwargs: Uses model_name lookup
GET: Retrieve model (public for global, org auth for custom)
PATCH: Update model (admin for global, org owner for custom)
DELETE: Delete model (admin for global, org owner for custom)
Permission logic:
- Global model (organization_id is None): Admin required for write
- Custom model (organization_id is set): Org ownership required for write
Authentication
AuthorizationBearer
JWT access token or Respan API key
Path parameters
id