Inference Providers

Save the Auto Router

Changed on

Replaces the organization's Auto Router: whether it is enabled and its routes in order. Each route names an AI Gateway model from the options list, a description of when to use it, and one thinking level the model allows. The first route is the default model: its prompt is fixed (any prompt sent for it is ignored), Auto uses it when no other route matches, and it is the fallback when the router cannot decide. Every other route needs a prompt; enabling needs at least one route and is refused with auto_router_not_configured while the AI Gateway has no TypeSafe key. Requires the Manage Gateway providers permission, a recent sign-in and the Auto Router feature.

put/v1/org/auto-router

Request

  • Base URL
    https://api.openworklabs.com
  • URL
    https://api.openworklabs.com/v1/org/auto-router
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Request body

enabledboolean required

Response

Auto Router saved.

enabledboolean required
routing'ready' | 'missing_key' | 'unknown' required
canEditboolean required

Changes

    • breaking

      added the new required request property //

    • breaking

      removed the required property // from the response with the status

    • warning

      removed the request property //

    • info

      the request property // became optional

    • info

      the // request property's minLength was decreased from 1 to 0

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status