Set the pipelines default model
const url = 'http://localhost:8300/v1/studio/admin/pipeline-model';const options = { method: 'PUT', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"mode":"local","provider":"example","model":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8300/v1/studio/admin/pipeline-model \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "mode": "local", "provider": "example", "model": "example" }'Admin only (403). Applies to pipelines checked and submitted from then on (a batch keeps what it was submitted with). 422 provider and model are only for remote, remote needs a provider, <provider> is not an enabled provider, <provider> is only yours; pick a shared provider (an Only-you provider: pipelines run for every account), <model> is not a model of <provider>, the Assistant is not set up (assistant with no Assistant provider), the Assistant's provider is only yours; pick a shared provider; 409 remote models are off on this deployment for a provider of kind remote (or an Assistant on one) while the deployment’s switch is off.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Remote only, required there
Remote only; absent = the provider’s default_model
Responses
Section titled “Responses”The setting
What a write, decide or agent step’s Runs on · Auto runs on (a judge keeps its family’s vision model).
object
Remote: a provider of Hub › Providers, kind server or remote; assistant: the Assistant’s own provider and model (Same as Assistant), followed as it changes
Remote: the provider’s name; null otherwise
Remote: one of its models; null otherwise
The deployment’s remote switch
Null until first set
Example
{ "mode": "local"}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Valid token without the admin role: “admin role required”
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}