zero_retention_unavailable
The message text is shown in the example below.
⚠️
Preview — this feature is being built; the design below is the spec. Not in the public error catalog (error-envelope.ts). Treat as provisional; it may be renamed or folded into a catalog code.
| HTTP status | 403 |
type | permission_error |
| Retry? | No, not unchanged |
| Status | Not live / provisional |
| Extra fields | none |
When it happens
Your organization requires zero data retention and no model service that meets it is available right now.
Example
{
"error": {
"type": "permission_error",
"code": "zero_retention_unavailable",
"message": "No zero-retention model service is available.",
"param": null,
"request_id": "req_6f1c2a9e0b7d4c3a8e5f1b2d"
}
}How to fix it
- Contact support; this is not something a retry or a different request will fix.
Detect it in code
err = resp.json().get("error", {})
if resp.status_code == 403 and err.get("code") == "zero_retention_unavailable":
log.warning("%s (%s)", err["message"], err["request_id"]) # fix the request; do not retry unchangedRelated
Was this page helpful?