Router Training
Train Router
POST
/
v0
/
router
/
train
Train a router based on a specified training dataset and a set of endpoints to route
across. To use a custom-trained router, you will need to deploy the resulting
artifacts to a live endpoint, via the /router/deploy
POST
endpoint.
Authorizations
Authorization
string
requiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
name
string
requiredName of the router.
dataset
string | null
Name of the uploaded dataset to train a router on. Must pass exactly one of dataset
, prompts
.
prompts
string | null
Specify the prompts to train a router on. Pass a string of comma separated integers. Must pass exactly one of dataset
, prompts
.
endpoints
array
requiredList of endpoints to include in the router. Endpoints must be specified using the model@provider
format.