Update a smart-model policy
Authorizations
JWT obtained through Barndoor's authentication flow. Pass the token
verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's
loginInteractive() helper to obtain a token in scripts and notebooks.
Path Parameters
Body
Response
The updated policy
Picks one of several model aliases per request based on a determiner-model classification (e.g. send short prompts to a small model, long prompts to a larger one).
The new alias clients call (must not collide with existing routes)
"smart-coder"
The model the gateway uses to classify each request
"gpt-4o-mini"
1Token counts at which the determiner switches between slots
[4000, 32000]2000
Slot index used when the determiner fails or times out
