Skip to content

Change the assistant's settings

PUT
/api/assistant/settings
curl --request PUT \
--url https://forge.example.com/api/assistant/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "source": "example", "vendor": "example", "model": "example", "apiKey": "example", "version": 1, "workspaceId": "example", "region": "example", "roleArn": "example", "zeroRetention": true, "identity": "example", "resourceName": "example", "deployment": "example", "tenantId": "example", "clientId": "example", "project": "example", "provider": "example", "serviceAccount": "example", "endpoint": "example", "routineModel": "example", "routineDeployment": "example" }'

A field left out keeps what is stored; an empty apiKey removes the stored key. Send the settings’ version as you read it, 0 while nothing was saved. A stale one answers 409 with currentVersion, the version it has now. For administrators.

Media typeapplication/json
object
source
required
string
vendor
null | string
model
null | string
apiKey
null | string
version
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
workspaceId
null | string
region
null | string
roleArn
null | string
zeroRetention
null | boolean
identity
null | string
resourceName
null | string
deployment
null | string
tenantId
null | string
clientId
null | string
project
null | string
provider
null | string
serviceAccount
null | string
endpoint
null | string
routineModel
null | string
routineDeployment
null | string

Example generated

{
"source": "example",
"vendor": "example",
"model": "example",
"apiKey": "example",
"version": 1,
"workspaceId": "example",
"region": "example",
"roleArn": "example",
"zeroRetention": true,
"identity": "example",
"resourceName": "example",
"deployment": "example",
"tenantId": "example",
"clientId": "example",
"project": "example",
"provider": "example",
"serviceAccount": "example",
"endpoint": "example",
"routineModel": "example",
"routineDeployment": "example"
}

OK

Media typeapplication/json
object
source
required
string
vendor
required
null | string
model
required
null | string
workspaceId
required
null | string
includedOffered
required
boolean
credential
required
object
isSet
required
boolean
setBy
required
One of:
null
setAt
required
null | string format: date-time
protection
One of:
null
vendors
required
Array<object>
object
key
required
string
label
required
string
models
required
Array<object>
object
id
required
string
label
required
string
tested
required
boolean
retentionRequired
boolean
geography
null | string
available
required
boolean
identity
string
default: key
retention
null | string
retentionRequiredNote
null | string
regions
Array<object> | null
object
key
required
string
label
required
string
geography
required
string
identities
Array<string> | null
limits
Array<string> | null
deepDefault
null | string
routineDefault
null | string
reasoningAcrossModels
boolean
takesEffort
boolean
ownAccountOnly
boolean
switchedOff
boolean
region
null | string
roleArn
null | string
externalId
null | string
trustedPrincipal
null | string
zeroRetention
boolean
includedRetentionRequired
boolean
version
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
identity
null | string
resourceName
null | string
deployment
null | string
tenantId
null | string
clientId
null | string
project
null | string
provider
null | string
serviceAccount
null | string
endpoint
null | string
federationIssuer
null | string
federationSubject
null | string
azureAudience
null | string
googleAudience
null | string
customAddressOffered
boolean
routineModel
null | string
routineDeployment
null | string
routineEffort
string
deepEffort
string

Example

{
"credential": {
"protection": {
"revealable": false
}
},
"vendors": [
{
"models": [
{
"retentionRequired": false
}
],
"identity": "key"
}
],
"ownAccountOnly": false,
"switchedOff": false,
"zeroRetention": false,
"includedRetentionRequired": false
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}