Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 2.23 KB

ModelConfigPatch.md

File metadata and controls

38 lines (32 loc) · 2.23 KB

LaunchDarklyApi::ModelConfigPatch

Properties

Name Type Description Notes
id String Immutable provider model identifier. To use a different model identifier, create a new model config. [optional]
provider String Immutable model provider. To use a different provider, create a new model config. [optional]
name String Human-readable name of the model [optional]
cost_per_input_token Float Cost per input token in USD [optional]
cost_per_output_token Float Cost per output token in USD [optional]
cost_per_cached_input_token Float Cost per cached input token in USD [optional]
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]
custom_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]
tags Array<String> Tags for the model config. Replaces the current tags. [optional]
maintainer_id String The member ID of the new maintainer. Set `maintainerId` or `maintainerTeamKey`, not both. An empty string removes the maintainer. [optional]
maintainer_team_key String The key of the team to set as the new maintainer. Set `maintainerId` or `maintainerTeamKey`, not both. [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::ModelConfigPatch.new(
  id: null,
  provider: null,
  name: GPT Image 2,
  cost_per_input_token: 0.0000050,
  cost_per_output_token: 0.000040,
  cost_per_cached_input_token: 0.00000125,
  params: null,
  custom_params: null,
  tags: [&quot;image&quot;],
  maintainer_id: 507f1f77bcf86cd799439011,
  maintainer_team_key: example-team-key
)