Delete a custom model
curl --request DELETE \
--url https://paradigm.lighton.ai/api/v3/company/models/{uuid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/company/models/{uuid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/company/models/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": null,
"code": 403,
"error": "insufficient_permissions",
"detail": "Admin access required.",
"doc_url": "https://developers.lighton.ai/errors#insufficient_permissions"
}{
"id": null,
"code": 404,
"error": "not_found",
"detail": "Custom model a08cff52-1a96-49f4-9f28-84a060b9264c not found.",
"doc_url": "https://developers.lighton.ai/errors#not_found"
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Models
Delete a custom model
Delete a custom ML model and immediately deregister it from LiteLLM. Requires company admin role.
DELETE
/
api
/
v3
/
company
/
models
/
{uuid}
Delete a custom model
curl --request DELETE \
--url https://paradigm.lighton.ai/api/v3/company/models/{uuid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/company/models/{uuid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/company/models/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": null,
"code": 403,
"error": "insufficient_permissions",
"detail": "Admin access required.",
"doc_url": "https://developers.lighton.ai/errors#insufficient_permissions"
}{
"id": null,
"code": 404,
"error": "not_found",
"detail": "Custom model a08cff52-1a96-49f4-9f28-84a060b9264c not found.",
"doc_url": "https://developers.lighton.ai/errors#not_found"
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}⌘I