Models (AI Data Plane)
Update Model
Changed onUpdates an existing model.
Model updates may take up to a few minutes to take effect.
In order to access this endpoint, the provided API key must have at least one of the following roles:
- Organization Owner
To learn more, see Organization, Project, and Database Access Overview.
put/v4/organizations/{organizationId}/aiServices/models/{modelId}
Request
- Base URLhttps://cloudapi.cloud.couchbase.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
If-Matchstring
Example:12
A precondition header that specifies the entity tag of a resource.
Request body
Example request
{
"name": "my-new-model",
"caching": {
"enableStandard": true,
"semantic": {
"embeddingModel": "my-embedding-model-id",
"scoreThreshold": 0.75,
"dimensions": 4096,
"distanceMetric": "dot_product"
},
"defaultCache": "semantic",
"expiryTTL": 1000
},
"enableBatching": true,
"keywordFiltering": [
"harassment",
"murder"
],
"guardrails": [
"sexual crime",
"hate speech"
],
"jailbreak": {
"scoreThreshold": 0.9
}
}Response
Successfully submitted request to update model.
Changes
- info
api tag
Models (AI Data Plane)added - info
api tag
Models (AI Services)removed
- info