Replace latest AI Model version
Changed onReplaces the latest version.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The unique identifier of the AI Model.
Request body
Request body for replacing an AI Model Version.
An optional user-supplied version label.
The upstream LLM targets (full set).
Example request
{
"version": "1.0.0",
"target_models": [
{
"provider": "openai",
"name": "gpt-4o"
}
]
}Response
The replaced version
A version of an AI Model, holding its target_models. Currently only exactly one version (latest) per model exists.
The unique identifier of the version.
The identifier of the parent AI Model.
An optional user-supplied version label. null when unset.
The upstream LLM targets for this version.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"id": "9c4a1b2c-3d4e-5f60-7182-93a4b5c6d7e8",
"ai_model_id": "123e4567-e89b-12d3-a456-426614174000",
"version": "1.0.0",
"target_models": [
{
"provider": "openai",
"name": "gpt-4o"
}
],
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status - warning
added the new
uniqueenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
- breaking