Models
Delete model version
Delete a fine-tuned version for good, by its number, such as router@3, or its id: it no longer answers or runs anything, lists leave it out, and it no longer counts against the account’s storage. A name or an alias such as router@candidate is refused, since a retry could find another version behind it. A version in production is refused: take it out of production first. So is one an evaluation is still scoring. Its fine-tune’s history stays. It can’t be undone, and deleting again changes nothing.
DELETE
/
v1
/
models
/
{model_id}
Delete model version
curl --request DELETE \
--url https://console.sqwish.ai/v1/models/{model_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.sqwish.ai/v1/models/{model_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.sqwish.ai/v1/models/{model_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"deleted": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}Delete model version
curl --request DELETE \
--url https://console.sqwish.ai/v1/models/{model_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.sqwish.ai/v1/models/{model_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.sqwish.ai/v1/models/{model_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"deleted": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}