| Name | Type | Description | Notes |
|---|---|---|---|
| Access | Pointer to AiConfigsAccess | [optional] | |
| Maintainer | Pointer to AIConfigMaintainer | [optional] | |
| Name | string | Human-readable name of the model | |
| 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. | |
| Id | string | Model ID that the provider's API uses. This is different from `key`. Use this value as `modelName` on a config variation. | |
| Icon | Pointer to string | Icon for the model | [optional] |
| Provider | Pointer to string | Provider for the model. Matches the provider prefix of `key`. | [optional] |
| Global | bool | 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`. | |
| Params | Pointer to map[string]interface{} | 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] |
| CustomParams | Pointer to map[string]interface{} | 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 | []string | Tags for the model config. Tags can be used in custom role policies. | |
| Version | int32 | Version of the model config. Starts at 1, and each update that changes the model config adds a new version. | |
| CostPerInputToken | Pointer to float64 | Cost per input token in USD | [optional] |
| CostPerOutputToken | Pointer to float64 | Cost per output token in USD | [optional] |
| CostPerCachedInputToken | Pointer to float64 | Cost per cached input token in USD | [optional] |
| IsRestricted | bool | 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. | |
| UsedInCount | Pointer to int32 | Number of distinct AgentControl configs that reference this model | [optional] |
func NewModelConfig(name string, key string, id string, global bool, tags []string, version int32, isRestricted bool, ) *ModelConfig
NewModelConfig instantiates a new ModelConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewModelConfigWithDefaults() *ModelConfig
NewModelConfigWithDefaults instantiates a new ModelConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ModelConfig) GetAccess() AiConfigsAccess
GetAccess returns the Access field if non-nil, zero value otherwise.
func (o *ModelConfig) GetAccessOk() (*AiConfigsAccess, bool)
GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetAccess(v AiConfigsAccess)
SetAccess sets Access field to given value.
func (o *ModelConfig) HasAccess() bool
HasAccess returns a boolean if a field has been set.
func (o *ModelConfig) GetMaintainer() AIConfigMaintainer
GetMaintainer returns the Maintainer field if non-nil, zero value otherwise.
func (o *ModelConfig) GetMaintainerOk() (*AIConfigMaintainer, bool)
GetMaintainerOk returns a tuple with the Maintainer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetMaintainer(v AIConfigMaintainer)
SetMaintainer sets Maintainer field to given value.
func (o *ModelConfig) HasMaintainer() bool
HasMaintainer returns a boolean if a field has been set.
func (o *ModelConfig) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *ModelConfig) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetName(v string)
SetName sets Name field to given value.
func (o *ModelConfig) GetKey() string
GetKey returns the Key field if non-nil, zero value otherwise.
func (o *ModelConfig) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetKey(v string)
SetKey sets Key field to given value.
func (o *ModelConfig) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *ModelConfig) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetId(v string)
SetId sets Id field to given value.
func (o *ModelConfig) GetIcon() string
GetIcon returns the Icon field if non-nil, zero value otherwise.
func (o *ModelConfig) GetIconOk() (*string, bool)
GetIconOk returns a tuple with the Icon field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetIcon(v string)
SetIcon sets Icon field to given value.
func (o *ModelConfig) HasIcon() bool
HasIcon returns a boolean if a field has been set.
func (o *ModelConfig) GetProvider() string
GetProvider returns the Provider field if non-nil, zero value otherwise.
func (o *ModelConfig) GetProviderOk() (*string, bool)
GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetProvider(v string)
SetProvider sets Provider field to given value.
func (o *ModelConfig) HasProvider() bool
HasProvider returns a boolean if a field has been set.
func (o *ModelConfig) GetGlobal() bool
GetGlobal returns the Global field if non-nil, zero value otherwise.
func (o *ModelConfig) GetGlobalOk() (*bool, bool)
GetGlobalOk returns a tuple with the Global field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetGlobal(v bool)
SetGlobal sets Global field to given value.
func (o *ModelConfig) GetParams() map[string]interface{}
GetParams returns the Params field if non-nil, zero value otherwise.
func (o *ModelConfig) GetParamsOk() (*map[string]interface{}, bool)
GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetParams(v map[string]interface{})
SetParams sets Params field to given value.
func (o *ModelConfig) HasParams() bool
HasParams returns a boolean if a field has been set.
func (o *ModelConfig) GetCustomParams() map[string]interface{}
GetCustomParams returns the CustomParams field if non-nil, zero value otherwise.
func (o *ModelConfig) GetCustomParamsOk() (*map[string]interface{}, bool)
GetCustomParamsOk returns a tuple with the CustomParams field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetCustomParams(v map[string]interface{})
SetCustomParams sets CustomParams field to given value.
func (o *ModelConfig) HasCustomParams() bool
HasCustomParams returns a boolean if a field has been set.
func (o *ModelConfig) GetTags() []string
GetTags returns the Tags field if non-nil, zero value otherwise.
func (o *ModelConfig) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetTags(v []string)
SetTags sets Tags field to given value.
func (o *ModelConfig) GetVersion() int32
GetVersion returns the Version field if non-nil, zero value otherwise.
func (o *ModelConfig) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetVersion(v int32)
SetVersion sets Version field to given value.
func (o *ModelConfig) GetCostPerInputToken() float64
GetCostPerInputToken returns the CostPerInputToken field if non-nil, zero value otherwise.
func (o *ModelConfig) GetCostPerInputTokenOk() (*float64, bool)
GetCostPerInputTokenOk returns a tuple with the CostPerInputToken field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetCostPerInputToken(v float64)
SetCostPerInputToken sets CostPerInputToken field to given value.
func (o *ModelConfig) HasCostPerInputToken() bool
HasCostPerInputToken returns a boolean if a field has been set.
func (o *ModelConfig) GetCostPerOutputToken() float64
GetCostPerOutputToken returns the CostPerOutputToken field if non-nil, zero value otherwise.
func (o *ModelConfig) GetCostPerOutputTokenOk() (*float64, bool)
GetCostPerOutputTokenOk returns a tuple with the CostPerOutputToken field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetCostPerOutputToken(v float64)
SetCostPerOutputToken sets CostPerOutputToken field to given value.
func (o *ModelConfig) HasCostPerOutputToken() bool
HasCostPerOutputToken returns a boolean if a field has been set.
func (o *ModelConfig) GetCostPerCachedInputToken() float64
GetCostPerCachedInputToken returns the CostPerCachedInputToken field if non-nil, zero value otherwise.
func (o *ModelConfig) GetCostPerCachedInputTokenOk() (*float64, bool)
GetCostPerCachedInputTokenOk returns a tuple with the CostPerCachedInputToken field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetCostPerCachedInputToken(v float64)
SetCostPerCachedInputToken sets CostPerCachedInputToken field to given value.
func (o *ModelConfig) HasCostPerCachedInputToken() bool
HasCostPerCachedInputToken returns a boolean if a field has been set.
func (o *ModelConfig) GetIsRestricted() bool
GetIsRestricted returns the IsRestricted field if non-nil, zero value otherwise.
func (o *ModelConfig) GetIsRestrictedOk() (*bool, bool)
GetIsRestrictedOk returns a tuple with the IsRestricted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetIsRestricted(v bool)
SetIsRestricted sets IsRestricted field to given value.
func (o *ModelConfig) GetUsedInCount() int32
GetUsedInCount returns the UsedInCount field if non-nil, zero value otherwise.
func (o *ModelConfig) GetUsedInCountOk() (*int32, bool)
GetUsedInCountOk returns a tuple with the UsedInCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ModelConfig) SetUsedInCount(v int32)
SetUsedInCount sets UsedInCount field to given value.
func (o *ModelConfig) HasUsedInCount() bool
HasUsedInCount returns a boolean if a field has been set.