model_retention_unverifiable
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 | 503 |
type | service_unavailable_error |
| Retry? | Yes, with back-off after Retry-After |
| Status | Not live / provisional |
| Extra fields | retry_after |
When it happens
For zero-retention organizations: the model’s retention could not be confirmed, so the request was not sent.
Example
{
"error": {
"type": "service_unavailable_error",
"code": "model_retention_unverifiable",
"message": "Model retention could not be confirmed. Nothing was charged.",
"param": null,
"request_id": "req_6f1c2a9e0b7d4c3a8e5f1b2d",
"retry_after": 5
}
}How to fix it
- Retry after 5 seconds.
Detect it in code
err = resp.json().get("error", {})
if resp.status_code == 503 and err.get("code") == "model_retention_unverifiable":
delay = err.get("retry_after") or 2
time.sleep(delay) # then retryRelated
Was this page helpful?