Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Set the pipelines default model

PUT
/v1/studio/admin/pipeline-model
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.

Media typeapplication/json
object
mode
required
string
Allowed values: local remote assistant
provider

Remote only, required there

string
/^[a-z][a-z0-9-]{0,31}$/
model

Remote only; absent = the provider’s default_model

string
<= 128 characters

The setting

Media typeapplication/json

What a write, decide or agent step’s Runs on · Auto runs on (a judge keeps its family’s vision model).

object
mode
required

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

string
Allowed values: local remote assistant
provider
required

Remote: the provider’s name; null otherwise

string | null
model
required

Remote: one of its models; null otherwise

string | null
remote_enabled
required

The deployment’s remote switch

boolean
updated_at
required

Null until first set

string | null format: date-time

Example

{
"mode": "local"
}

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Valid token without the admin role: “admin role required”

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}