Skip to content

Latest commit

 

History

History
437 lines (234 loc) · 12.9 KB

ModelConfig.md

File metadata and controls

437 lines (234 loc) · 12.9 KB

ModelConfig

Properties

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]

Methods

NewModelConfig

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

NewModelConfigWithDefaults

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

GetAccess

func (o *ModelConfig) GetAccess() AiConfigsAccess

GetAccess returns the Access field if non-nil, zero value otherwise.

GetAccessOk

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.

SetAccess

func (o *ModelConfig) SetAccess(v AiConfigsAccess)

SetAccess sets Access field to given value.

HasAccess

func (o *ModelConfig) HasAccess() bool

HasAccess returns a boolean if a field has been set.

GetMaintainer

func (o *ModelConfig) GetMaintainer() AIConfigMaintainer

GetMaintainer returns the Maintainer field if non-nil, zero value otherwise.

GetMaintainerOk

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.

SetMaintainer

func (o *ModelConfig) SetMaintainer(v AIConfigMaintainer)

SetMaintainer sets Maintainer field to given value.

HasMaintainer

func (o *ModelConfig) HasMaintainer() bool

HasMaintainer returns a boolean if a field has been set.

GetName

func (o *ModelConfig) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

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.

SetName

func (o *ModelConfig) SetName(v string)

SetName sets Name field to given value.

GetKey

func (o *ModelConfig) GetKey() string

GetKey returns the Key field if non-nil, zero value otherwise.

GetKeyOk

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.

SetKey

func (o *ModelConfig) SetKey(v string)

SetKey sets Key field to given value.

GetId

func (o *ModelConfig) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

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.

SetId

func (o *ModelConfig) SetId(v string)

SetId sets Id field to given value.

GetIcon

func (o *ModelConfig) GetIcon() string

GetIcon returns the Icon field if non-nil, zero value otherwise.

GetIconOk

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.

SetIcon

func (o *ModelConfig) SetIcon(v string)

SetIcon sets Icon field to given value.

HasIcon

func (o *ModelConfig) HasIcon() bool

HasIcon returns a boolean if a field has been set.

GetProvider

func (o *ModelConfig) GetProvider() string

GetProvider returns the Provider field if non-nil, zero value otherwise.

GetProviderOk

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.

SetProvider

func (o *ModelConfig) SetProvider(v string)

SetProvider sets Provider field to given value.

HasProvider

func (o *ModelConfig) HasProvider() bool

HasProvider returns a boolean if a field has been set.

GetGlobal

func (o *ModelConfig) GetGlobal() bool

GetGlobal returns the Global field if non-nil, zero value otherwise.

GetGlobalOk

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.

SetGlobal

func (o *ModelConfig) SetGlobal(v bool)

SetGlobal sets Global field to given value.

GetParams

func (o *ModelConfig) GetParams() map[string]interface{}

GetParams returns the Params field if non-nil, zero value otherwise.

GetParamsOk

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.

SetParams

func (o *ModelConfig) SetParams(v map[string]interface{})

SetParams sets Params field to given value.

HasParams

func (o *ModelConfig) HasParams() bool

HasParams returns a boolean if a field has been set.

GetCustomParams

func (o *ModelConfig) GetCustomParams() map[string]interface{}

GetCustomParams returns the CustomParams field if non-nil, zero value otherwise.

GetCustomParamsOk

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.

SetCustomParams

func (o *ModelConfig) SetCustomParams(v map[string]interface{})

SetCustomParams sets CustomParams field to given value.

HasCustomParams

func (o *ModelConfig) HasCustomParams() bool

HasCustomParams returns a boolean if a field has been set.

GetTags

func (o *ModelConfig) GetTags() []string

GetTags returns the Tags field if non-nil, zero value otherwise.

GetTagsOk

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.

SetTags

func (o *ModelConfig) SetTags(v []string)

SetTags sets Tags field to given value.

GetVersion

func (o *ModelConfig) GetVersion() int32

GetVersion returns the Version field if non-nil, zero value otherwise.

GetVersionOk

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.

SetVersion

func (o *ModelConfig) SetVersion(v int32)

SetVersion sets Version field to given value.

GetCostPerInputToken

func (o *ModelConfig) GetCostPerInputToken() float64

GetCostPerInputToken returns the CostPerInputToken field if non-nil, zero value otherwise.

GetCostPerInputTokenOk

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.

SetCostPerInputToken

func (o *ModelConfig) SetCostPerInputToken(v float64)

SetCostPerInputToken sets CostPerInputToken field to given value.

HasCostPerInputToken

func (o *ModelConfig) HasCostPerInputToken() bool

HasCostPerInputToken returns a boolean if a field has been set.

GetCostPerOutputToken

func (o *ModelConfig) GetCostPerOutputToken() float64

GetCostPerOutputToken returns the CostPerOutputToken field if non-nil, zero value otherwise.

GetCostPerOutputTokenOk

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.

SetCostPerOutputToken

func (o *ModelConfig) SetCostPerOutputToken(v float64)

SetCostPerOutputToken sets CostPerOutputToken field to given value.

HasCostPerOutputToken

func (o *ModelConfig) HasCostPerOutputToken() bool

HasCostPerOutputToken returns a boolean if a field has been set.

GetCostPerCachedInputToken

func (o *ModelConfig) GetCostPerCachedInputToken() float64

GetCostPerCachedInputToken returns the CostPerCachedInputToken field if non-nil, zero value otherwise.

GetCostPerCachedInputTokenOk

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.

SetCostPerCachedInputToken

func (o *ModelConfig) SetCostPerCachedInputToken(v float64)

SetCostPerCachedInputToken sets CostPerCachedInputToken field to given value.

HasCostPerCachedInputToken

func (o *ModelConfig) HasCostPerCachedInputToken() bool

HasCostPerCachedInputToken returns a boolean if a field has been set.

GetIsRestricted

func (o *ModelConfig) GetIsRestricted() bool

GetIsRestricted returns the IsRestricted field if non-nil, zero value otherwise.

GetIsRestrictedOk

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.

SetIsRestricted

func (o *ModelConfig) SetIsRestricted(v bool)

SetIsRestricted sets IsRestricted field to given value.

GetUsedInCount

func (o *ModelConfig) GetUsedInCount() int32

GetUsedInCount returns the UsedInCount field if non-nil, zero value otherwise.

GetUsedInCountOk

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.

SetUsedInCount

func (o *ModelConfig) SetUsedInCount(v int32)

SetUsedInCount sets UsedInCount field to given value.

HasUsedInCount

func (o *ModelConfig) HasUsedInCount() bool

HasUsedInCount returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]