Run this month's recipe tuning now
Starts this month’s recipe-tuning run of the active version, or
returns it: one run per version, engine epoch and calendar
month (UTC), whether this or the nightly calibration starts it. The
response is the suggestion as it stands, running until the run
ends. Runs are never billed. On a template prefix, the template’s
judgment, on its tenants’ pooled outcomes.
invalid_request when the version cannot be tuned: a judgment the
namespace inherits from a template, a composite, no context recipe,
a recipe with nothing to make smaller, or no calibration fit yet
(100 outcomes, 20 of each kind). On the Team plan and above: below
it, plan_required.
Authorizations
An organization API key. Keys carry a role (read_write or
read_only) and may be restricted to a namespace prefix such as
acme/*, or to one namespace such as acme/prod/tenant_1. A prefix
matches on a / boundary: acme/prod/tenant_1* covers
acme/prod/tenant_1 and everything under acme/prod/tenant_1/,
never acme/prod/tenant_12.
Headers
One key per logical request, reused only on its retries. A key
belongs to one request: within your organization, the same method,
path, query and body. For 24 hours after a successful response, a
request with the key and the same body gets that response back
verbatim, with Idempotent-Replayed: true, and runs nothing. Only a
successful response is kept, so the retry of a request that failed
runs again. While the first request runs or its response is kept,
the key with a different request is idempotency_key_reused (422).
A request sent while one with its key is still running is
rate_limited with Retry-After: 1, without running: retry it to
get the first one's response. In the rare case the key can't be
checked, the request runs as if it had none.
1 - 255Path Parameters
A namespace name, or a template prefix ending in /*, with any
/ sent as %2F: acme%2Fprod%2Ftenant_123 or acme%2Fprod%2F*.
A namespace name, or a template prefix: a namespace path ending in
/*, such as acme/prod/*, which every namespace under acme/prod/
inherits judgments from. Up to 256 bytes. Never exactly
. or .., which a URL path can't carry.
1 - 256^(?!\.\.?$)[A-Za-z0-9._:/-]+(/\*)?$A judgment, attribute or threshold name. Names are path segments in field references, so they never contain ..
1 - 128^[A-Za-z0-9_-]+$Response
The run started, is running, or ended this month.
The cheaper context recipe a version's outcomes support, from its last recipe-tuning run, or why there is none.
x >= 1not_run: no run yet;reasonsays why.running: a run is testing smaller recipes.ready:suggestionholds a cheaper recipe.none: the last run found none;reasonsays why.
not_run, running, ready, none Why there is no suggestion. Not run: awaiting_run (the next
calibration run starts it), too_few_outcomes (no calibration fit
yet), no_recipe, no_smaller_recipe (nothing to drop or halve,
such as a single field), composite, inherited (the template has
the suggestion). None: nothing_to_save (every answer is already
standard, the smallest size class),
no_cheaper_recipe (nothing moves enough answers to a smaller size
class to be meaningfully cheaper), accuracy_would_drop,
too_few_outcomes,
cost_cap (the run stopped at this month's limit) or
superseded (the engine's model changed during the run). Null
while running and when ready.
awaiting_run, too_few_outcomes, no_recipe, composite, inherited, nothing_to_save, no_smaller_recipe, no_cheaper_recipe, accuracy_would_drop, cost_cap, superseded What status and reason mean, in a sentence.
One sentence when ready, such as "A context recipe 42% cheaper per answer, with accuracy unchanged within noise on 312 labelled answers."
One smaller recipe, measured against the current one on the same
labelled answers and engine epoch. Apply it by posting definition
as a new version and activating it through its shadow report.
When the last run ended. Null before one has.
The earliest the nightly calibration starts the next run, 30 days after the last started. Null before one has.
Set below Team, where the recipe itself is withheld.