unknown_model means a decision run set the optional model field to a value OpenType does not serve. Read this page if you pin a model id in your requests.
What happened
Route:POST /v1/runs with "kind": "decision".
Decision runs accept an optional model field. OpenType serves one model, Neon 1.1, under two ids:
The request named something else, such as a misspelled id or another vendor’s model name. The run was refused before it existed. Nothing was stored and nothing was charged.
How to fix
- Set
modeltoneon-1.1orneon-latest, or leave it out. - Copy the id exactly as written here:
neon-1.1orneon-latest. - Send the corrected request. It was refused before a run existed, so you may keep the same
Idempotency-Key.
decision.model, which reads neon-1.1.
Example
The message text is not fixed. Branch oncode.
Related
- Models and pricing - Neon 1.1, its ids and its prices.
- Decision runs - every field of a decision request.
- invalid_body - other fields that do not fit the run contract.
- Problem codes - every code, its status, and whether a retry can help.