Fields to update. Omitted fields keep their current values. params, customParams, and tags replace the current values. Global model configs cannot be updated.
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Immutable provider model identifier. To use a different model identifier, create a new model config. | [optional] [default to undefined] |
| provider | string | Immutable model provider. To use a different provider, create a new model config. | [optional] [default to undefined] |
| name | string | Human-readable name of the model | [optional] [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] |
| 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. Replaces the current tags. | [optional] [default to undefined] |
| maintainerId | string | The member ID of the new maintainer. Set `maintainerId` or `maintainerTeamKey`, not both. An empty string removes the maintainer. | [optional] [default to undefined] |
| maintainerTeamKey | string | The key of the team to set as the new maintainer. Set `maintainerId` or `maintainerTeamKey`, not both. | [optional] [default to undefined] |
import { ModelConfigPatch } from 'launchdarkly-api-typescript';
const instance: ModelConfigPatch = {
id,
provider,
name,
costPerInputToken,
costPerOutputToken,
costPerCachedInputToken,
params,
customParams,
tags,
maintainerId,
maintainerTeamKey,
};