Create new AI Config

Create a new AI Config within the given project.

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired

Request

AI Config object to create
keystringRequired
namestringRequired
descriptionstringOptionalDefaults to
maintainerIdstringOptional
maintainerTeamKeystringOptional
modeenumOptionalDefaults to completion
tagslist of stringsOptional
viewKeyslist of stringsOptional
defaultVariationobjectOptional
evaluationMetricKeystringOptional
Evaluation metric key for this config
isInvertedbooleanOptional
Whether the evaluation metric is inverted, meaning a lower value is better if set as true

Response

AI Config created
descriptionstring
keystring
namestring
tagslist of strings
versioninteger
variationslist of objects
createdAtlong
updatedAtlong
_accessobject
_maintainerobject
modeenumDefaults to completion
evaluationMetricKeystring
Evaluation metric key for this config
isInvertedboolean
Whether the evaluation metric is inverted, meaning a lower value is better if set as true
dependencieslist of objects
Resources that depend on this config, grouped by type
evaluationMetricKeyslist of stringsDeprecated
List of evaluation metric keys for this config

Errors

400
Bad Request Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error