Skip to main content

AI draft matches no example

typehttps://docs.frem.sh/reference/api/errors/ai-draft-no-match
HTTP status422 Unprocessable Entity

What it means

The pattern your AI provider proposed passed the checks but matches none of the examples you gave, so it is not a draft of what you asked for. The response’s candidate holds it. Nothing was saved.

What to do

Check that the examples are in the secret’s real format, then draft again, or fix the candidate by hand. See Draft a pattern with AI.

Response shape

All fremforge API errors are RFC 9457 problem+json:

{
  "type": "https://docs.frem.sh/reference/api/errors/ai-draft-no-match",
  "title": "Unprocessable Entity",
  "status": 422,
  "detail": "..."
}

Branch on type, not on title or detail - those are human-readable and may be reworded.