Skip to main content
POST
Create new AI Config

Authorizations

Authorization
string
header
required

Path Parameters

projectKey
string
required

Body

application/json

AI Config object to create

key
string
required
name
string
required
description
string
default:""
maintainerId
string
Example:

"507f1f77bcf86cd799439011"

maintainerTeamKey
string
Example:

"example-team-key"

mode
enum<string>
default:completion
Available options:
agent,
completion,
judge
tags
string[]
viewKeys
string[]
defaultVariation
object
Example:
evaluationMetricKey
string

Evaluation metric key for this config

isInverted
boolean

Whether the evaluation metric is inverted, meaning a lower value is better if set as true

Response

AI Config created

description
string
required
key
string
required
name
string
required
tags
string[]
required
version
integer
required
variations
object[]
required
createdAt
integer<int64>
required
updatedAt
integer<int64>
required
_access
object
Example:

The location and content type of related resources

Example:
_site
object
Example:
_maintainer
object
Example:
mode
enum<string>
default:completion
Available options:
agent,
completion,
judge
evaluationMetricKey
string

Evaluation metric key for this config

evaluationMetricKeys
string[]
deprecated

List of evaluation metric keys for this config

isInverted
boolean

Whether the evaluation metric is inverted, meaning a lower value is better if set as true

dependencies
object[]

Resources that depend on this config, grouped by type