| Name |
Type |
Description |
Notes |
| _access |
AiConfigsAccess |
|
[optional] [default to undefined] |
| _maintainer |
AIConfigMaintainer |
|
[optional] [default to undefined] |
| name |
string |
Human-readable name of the model |
[default to undefined] |
| key |
string |
Unique key for the model config in the project, in the format `Provider.model-id`. Use this value as `modelConfigKey` on a config variation. |
[default to undefined] |
| id |
string |
Model ID that the provider's API uses. This is different from `key`. Use this value as `modelName` on a config variation. |
[default to undefined] |
| icon |
string |
Icon for the model |
[optional] [default to undefined] |
| provider |
string |
Provider for the model. Matches the provider prefix of `key`. |
[optional] [default to undefined] |
| global |
boolean |
Whether the model is in the LaunchDarkly global catalog. Global models are read-only. Model configs that you create are always custom, with `global` set to `false`. |
[default to undefined] |
| params |
object |
Freeform JSON object. LaunchDarkly does not validate the keys. In a model config, `params` and `customParams` hold parameters that the provider's API accepts, for example `{"temperature": 0.7, "maxTokens": 4096}`. |
[optional] [default to undefined] |
| customParams |
object |
Freeform JSON object. LaunchDarkly does not validate the keys. In a model config, `params` and `customParams` hold parameters that the provider's API accepts, for example `{"temperature": 0.7, "maxTokens": 4096}`. |
[optional] [default to undefined] |
| tags |
Array<string> |
Tags for the model config. Tags can be used in custom role policies. |
[default to undefined] |
| version |
number |
Version of the model config. Starts at 1, and each update that changes the model config adds a new version. |
[default to undefined] |
| costPerInputToken |
number |
Cost per input token in USD |
[optional] [default to undefined] |
| costPerOutputToken |
number |
Cost per output token in USD |
[optional] [default to undefined] |
| costPerCachedInputToken |
number |
Cost per cached input token in USD |
[optional] [default to undefined] |
| isRestricted |
boolean |
Whether the model is on the project's restricted list. Config variations cannot select a restricted model. To change this, use the add or remove restricted models endpoints. |
[default to undefined] |
| usedInCount |
number |
Number of distinct AgentControl configs that reference this model |
[optional] [default to undefined] |
import { ModelConfig } from 'launchdarkly-api-typescript';
const instance: ModelConfig = {
_access,
_maintainer,
name,
key,
id,
icon,
provider,
global,
params,
customParams,
tags,
version,
costPerInputToken,
costPerOutputToken,
costPerCachedInputToken,
isRestricted,
usedInCount,
};
[Back to Model list] [Back to API list] [Back to README]