mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
1005 lines
26 KiB
Go
1005 lines
26 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the AiModelInfo type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &AiModelInfo{}
|
|
|
|
// AiModelInfo struct for AiModelInfo
|
|
type AiModelInfo struct {
|
|
Access *AiModelAccessInfo `json:"access,omitempty"`
|
|
CanonicalSlug *string `json:"canonical_slug,omitempty"`
|
|
Class *string `json:"class,omitempty"`
|
|
ContextWindow *int32 `json:"context_window,omitempty"`
|
|
Created *int32 `json:"created,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
Expires *string `json:"expires,omitempty"`
|
|
Family *string `json:"family,omitempty"`
|
|
Free *bool `json:"free,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Inputs []string `json:"inputs,omitempty"`
|
|
MaxOutputTokens *int32 `json:"max_output_tokens,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Object *string `json:"object,omitempty"`
|
|
Outputs []string `json:"outputs,omitempty"`
|
|
OwnedBy *string `json:"owned_by,omitempty"`
|
|
Premium *bool `json:"premium,omitempty"`
|
|
Pricing *AiModelPricingInfo `json:"pricing,omitempty"`
|
|
Provider *string `json:"provider,omitempty"`
|
|
SupportsReasoning *bool `json:"supports_reasoning,omitempty"`
|
|
SupportsTools *bool `json:"supports_tools,omitempty"`
|
|
SupportsVision *bool `json:"supports_vision,omitempty"`
|
|
Video *AiVideoSpec `json:"video,omitempty"`
|
|
Voice *AiVoiceSpec `json:"voice,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _AiModelInfo AiModelInfo
|
|
|
|
// NewAiModelInfo instantiates a new AiModelInfo 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 NewAiModelInfo() *AiModelInfo {
|
|
this := AiModelInfo{}
|
|
return &this
|
|
}
|
|
|
|
// NewAiModelInfoWithDefaults instantiates a new AiModelInfo 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 NewAiModelInfoWithDefaults() *AiModelInfo {
|
|
this := AiModelInfo{}
|
|
return &this
|
|
}
|
|
|
|
// GetAccess returns the Access field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetAccess() AiModelAccessInfo {
|
|
if o == nil || IsNil(o.Access) {
|
|
var ret AiModelAccessInfo
|
|
return ret
|
|
}
|
|
return *o.Access
|
|
}
|
|
|
|
// GetAccessOk returns a tuple with the Access field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetAccessOk() (*AiModelAccessInfo, bool) {
|
|
if o == nil || IsNil(o.Access) {
|
|
return nil, false
|
|
}
|
|
return o.Access, true
|
|
}
|
|
|
|
// HasAccess returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasAccess() bool {
|
|
if o != nil && !IsNil(o.Access) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAccess gets a reference to the given AiModelAccessInfo and assigns it to the Access field.
|
|
func (o *AiModelInfo) SetAccess(v AiModelAccessInfo) {
|
|
o.Access = &v
|
|
}
|
|
|
|
// GetCanonicalSlug returns the CanonicalSlug field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetCanonicalSlug() string {
|
|
if o == nil || IsNil(o.CanonicalSlug) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CanonicalSlug
|
|
}
|
|
|
|
// GetCanonicalSlugOk returns a tuple with the CanonicalSlug field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetCanonicalSlugOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CanonicalSlug) {
|
|
return nil, false
|
|
}
|
|
return o.CanonicalSlug, true
|
|
}
|
|
|
|
// HasCanonicalSlug returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasCanonicalSlug() bool {
|
|
if o != nil && !IsNil(o.CanonicalSlug) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCanonicalSlug gets a reference to the given string and assigns it to the CanonicalSlug field.
|
|
func (o *AiModelInfo) SetCanonicalSlug(v string) {
|
|
o.CanonicalSlug = &v
|
|
}
|
|
|
|
// GetClass returns the Class field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetClass() string {
|
|
if o == nil || IsNil(o.Class) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Class
|
|
}
|
|
|
|
// GetClassOk returns a tuple with the Class field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetClassOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Class) {
|
|
return nil, false
|
|
}
|
|
return o.Class, true
|
|
}
|
|
|
|
// HasClass returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasClass() bool {
|
|
if o != nil && !IsNil(o.Class) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetClass gets a reference to the given string and assigns it to the Class field.
|
|
func (o *AiModelInfo) SetClass(v string) {
|
|
o.Class = &v
|
|
}
|
|
|
|
// GetContextWindow returns the ContextWindow field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetContextWindow() int32 {
|
|
if o == nil || IsNil(o.ContextWindow) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.ContextWindow
|
|
}
|
|
|
|
// GetContextWindowOk returns a tuple with the ContextWindow field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetContextWindowOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.ContextWindow) {
|
|
return nil, false
|
|
}
|
|
return o.ContextWindow, true
|
|
}
|
|
|
|
// HasContextWindow returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasContextWindow() bool {
|
|
if o != nil && !IsNil(o.ContextWindow) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetContextWindow gets a reference to the given int32 and assigns it to the ContextWindow field.
|
|
func (o *AiModelInfo) SetContextWindow(v int32) {
|
|
o.ContextWindow = &v
|
|
}
|
|
|
|
// GetCreated returns the Created field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetCreated() int32 {
|
|
if o == nil || IsNil(o.Created) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Created
|
|
}
|
|
|
|
// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetCreatedOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Created) {
|
|
return nil, false
|
|
}
|
|
return o.Created, true
|
|
}
|
|
|
|
// HasCreated returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasCreated() bool {
|
|
if o != nil && !IsNil(o.Created) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreated gets a reference to the given int32 and assigns it to the Created field.
|
|
func (o *AiModelInfo) SetCreated(v int32) {
|
|
o.Created = &v
|
|
}
|
|
|
|
// GetDescription returns the Description field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetDescription() string {
|
|
if o == nil || IsNil(o.Description) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Description
|
|
}
|
|
|
|
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetDescriptionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Description) {
|
|
return nil, false
|
|
}
|
|
return o.Description, true
|
|
}
|
|
|
|
// HasDescription returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasDescription() bool {
|
|
if o != nil && !IsNil(o.Description) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
|
func (o *AiModelInfo) SetDescription(v string) {
|
|
o.Description = &v
|
|
}
|
|
|
|
// GetExpires returns the Expires field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetExpires() string {
|
|
if o == nil || IsNil(o.Expires) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Expires
|
|
}
|
|
|
|
// GetExpiresOk returns a tuple with the Expires field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetExpiresOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Expires) {
|
|
return nil, false
|
|
}
|
|
return o.Expires, true
|
|
}
|
|
|
|
// HasExpires returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasExpires() bool {
|
|
if o != nil && !IsNil(o.Expires) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExpires gets a reference to the given string and assigns it to the Expires field.
|
|
func (o *AiModelInfo) SetExpires(v string) {
|
|
o.Expires = &v
|
|
}
|
|
|
|
// GetFamily returns the Family field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetFamily() string {
|
|
if o == nil || IsNil(o.Family) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Family
|
|
}
|
|
|
|
// GetFamilyOk returns a tuple with the Family field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetFamilyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Family) {
|
|
return nil, false
|
|
}
|
|
return o.Family, true
|
|
}
|
|
|
|
// HasFamily returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasFamily() bool {
|
|
if o != nil && !IsNil(o.Family) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFamily gets a reference to the given string and assigns it to the Family field.
|
|
func (o *AiModelInfo) SetFamily(v string) {
|
|
o.Family = &v
|
|
}
|
|
|
|
// GetFree returns the Free field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetFree() bool {
|
|
if o == nil || IsNil(o.Free) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Free
|
|
}
|
|
|
|
// GetFreeOk returns a tuple with the Free field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetFreeOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Free) {
|
|
return nil, false
|
|
}
|
|
return o.Free, true
|
|
}
|
|
|
|
// HasFree returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasFree() bool {
|
|
if o != nil && !IsNil(o.Free) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFree gets a reference to the given bool and assigns it to the Free field.
|
|
func (o *AiModelInfo) SetFree(v bool) {
|
|
o.Free = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *AiModelInfo) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetInputs returns the Inputs field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetInputs() []string {
|
|
if o == nil || IsNil(o.Inputs) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.Inputs
|
|
}
|
|
|
|
// GetInputsOk returns a tuple with the Inputs field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetInputsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.Inputs) {
|
|
return nil, false
|
|
}
|
|
return o.Inputs, true
|
|
}
|
|
|
|
// HasInputs returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasInputs() bool {
|
|
if o != nil && !IsNil(o.Inputs) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetInputs gets a reference to the given []string and assigns it to the Inputs field.
|
|
func (o *AiModelInfo) SetInputs(v []string) {
|
|
o.Inputs = v
|
|
}
|
|
|
|
// GetMaxOutputTokens returns the MaxOutputTokens field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetMaxOutputTokens() int32 {
|
|
if o == nil || IsNil(o.MaxOutputTokens) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.MaxOutputTokens
|
|
}
|
|
|
|
// GetMaxOutputTokensOk returns a tuple with the MaxOutputTokens field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetMaxOutputTokensOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.MaxOutputTokens) {
|
|
return nil, false
|
|
}
|
|
return o.MaxOutputTokens, true
|
|
}
|
|
|
|
// HasMaxOutputTokens returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasMaxOutputTokens() bool {
|
|
if o != nil && !IsNil(o.MaxOutputTokens) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMaxOutputTokens gets a reference to the given int32 and assigns it to the MaxOutputTokens field.
|
|
func (o *AiModelInfo) SetMaxOutputTokens(v int32) {
|
|
o.MaxOutputTokens = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *AiModelInfo) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetObject returns the Object field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetObject() string {
|
|
if o == nil || IsNil(o.Object) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Object
|
|
}
|
|
|
|
// GetObjectOk returns a tuple with the Object field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetObjectOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Object) {
|
|
return nil, false
|
|
}
|
|
return o.Object, true
|
|
}
|
|
|
|
// HasObject returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasObject() bool {
|
|
if o != nil && !IsNil(o.Object) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetObject gets a reference to the given string and assigns it to the Object field.
|
|
func (o *AiModelInfo) SetObject(v string) {
|
|
o.Object = &v
|
|
}
|
|
|
|
// GetOutputs returns the Outputs field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetOutputs() []string {
|
|
if o == nil || IsNil(o.Outputs) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.Outputs
|
|
}
|
|
|
|
// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetOutputsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.Outputs) {
|
|
return nil, false
|
|
}
|
|
return o.Outputs, true
|
|
}
|
|
|
|
// HasOutputs returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasOutputs() bool {
|
|
if o != nil && !IsNil(o.Outputs) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOutputs gets a reference to the given []string and assigns it to the Outputs field.
|
|
func (o *AiModelInfo) SetOutputs(v []string) {
|
|
o.Outputs = v
|
|
}
|
|
|
|
// GetOwnedBy returns the OwnedBy field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetOwnedBy() string {
|
|
if o == nil || IsNil(o.OwnedBy) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.OwnedBy
|
|
}
|
|
|
|
// GetOwnedByOk returns a tuple with the OwnedBy field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetOwnedByOk() (*string, bool) {
|
|
if o == nil || IsNil(o.OwnedBy) {
|
|
return nil, false
|
|
}
|
|
return o.OwnedBy, true
|
|
}
|
|
|
|
// HasOwnedBy returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasOwnedBy() bool {
|
|
if o != nil && !IsNil(o.OwnedBy) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOwnedBy gets a reference to the given string and assigns it to the OwnedBy field.
|
|
func (o *AiModelInfo) SetOwnedBy(v string) {
|
|
o.OwnedBy = &v
|
|
}
|
|
|
|
// GetPremium returns the Premium field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetPremium() bool {
|
|
if o == nil || IsNil(o.Premium) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Premium
|
|
}
|
|
|
|
// GetPremiumOk returns a tuple with the Premium field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetPremiumOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Premium) {
|
|
return nil, false
|
|
}
|
|
return o.Premium, true
|
|
}
|
|
|
|
// HasPremium returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasPremium() bool {
|
|
if o != nil && !IsNil(o.Premium) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPremium gets a reference to the given bool and assigns it to the Premium field.
|
|
func (o *AiModelInfo) SetPremium(v bool) {
|
|
o.Premium = &v
|
|
}
|
|
|
|
// GetPricing returns the Pricing field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetPricing() AiModelPricingInfo {
|
|
if o == nil || IsNil(o.Pricing) {
|
|
var ret AiModelPricingInfo
|
|
return ret
|
|
}
|
|
return *o.Pricing
|
|
}
|
|
|
|
// GetPricingOk returns a tuple with the Pricing field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetPricingOk() (*AiModelPricingInfo, bool) {
|
|
if o == nil || IsNil(o.Pricing) {
|
|
return nil, false
|
|
}
|
|
return o.Pricing, true
|
|
}
|
|
|
|
// HasPricing returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasPricing() bool {
|
|
if o != nil && !IsNil(o.Pricing) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPricing gets a reference to the given AiModelPricingInfo and assigns it to the Pricing field.
|
|
func (o *AiModelInfo) SetPricing(v AiModelPricingInfo) {
|
|
o.Pricing = &v
|
|
}
|
|
|
|
// GetProvider returns the Provider field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetProvider() string {
|
|
if o == nil || IsNil(o.Provider) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Provider
|
|
}
|
|
|
|
// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetProviderOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Provider) {
|
|
return nil, false
|
|
}
|
|
return o.Provider, true
|
|
}
|
|
|
|
// HasProvider returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasProvider() bool {
|
|
if o != nil && !IsNil(o.Provider) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProvider gets a reference to the given string and assigns it to the Provider field.
|
|
func (o *AiModelInfo) SetProvider(v string) {
|
|
o.Provider = &v
|
|
}
|
|
|
|
// GetSupportsReasoning returns the SupportsReasoning field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetSupportsReasoning() bool {
|
|
if o == nil || IsNil(o.SupportsReasoning) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SupportsReasoning
|
|
}
|
|
|
|
// GetSupportsReasoningOk returns a tuple with the SupportsReasoning field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetSupportsReasoningOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SupportsReasoning) {
|
|
return nil, false
|
|
}
|
|
return o.SupportsReasoning, true
|
|
}
|
|
|
|
// HasSupportsReasoning returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasSupportsReasoning() bool {
|
|
if o != nil && !IsNil(o.SupportsReasoning) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSupportsReasoning gets a reference to the given bool and assigns it to the SupportsReasoning field.
|
|
func (o *AiModelInfo) SetSupportsReasoning(v bool) {
|
|
o.SupportsReasoning = &v
|
|
}
|
|
|
|
// GetSupportsTools returns the SupportsTools field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetSupportsTools() bool {
|
|
if o == nil || IsNil(o.SupportsTools) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SupportsTools
|
|
}
|
|
|
|
// GetSupportsToolsOk returns a tuple with the SupportsTools field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetSupportsToolsOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SupportsTools) {
|
|
return nil, false
|
|
}
|
|
return o.SupportsTools, true
|
|
}
|
|
|
|
// HasSupportsTools returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasSupportsTools() bool {
|
|
if o != nil && !IsNil(o.SupportsTools) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSupportsTools gets a reference to the given bool and assigns it to the SupportsTools field.
|
|
func (o *AiModelInfo) SetSupportsTools(v bool) {
|
|
o.SupportsTools = &v
|
|
}
|
|
|
|
// GetSupportsVision returns the SupportsVision field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetSupportsVision() bool {
|
|
if o == nil || IsNil(o.SupportsVision) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SupportsVision
|
|
}
|
|
|
|
// GetSupportsVisionOk returns a tuple with the SupportsVision field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetSupportsVisionOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SupportsVision) {
|
|
return nil, false
|
|
}
|
|
return o.SupportsVision, true
|
|
}
|
|
|
|
// HasSupportsVision returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasSupportsVision() bool {
|
|
if o != nil && !IsNil(o.SupportsVision) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSupportsVision gets a reference to the given bool and assigns it to the SupportsVision field.
|
|
func (o *AiModelInfo) SetSupportsVision(v bool) {
|
|
o.SupportsVision = &v
|
|
}
|
|
|
|
// GetVideo returns the Video field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetVideo() AiVideoSpec {
|
|
if o == nil || IsNil(o.Video) {
|
|
var ret AiVideoSpec
|
|
return ret
|
|
}
|
|
return *o.Video
|
|
}
|
|
|
|
// GetVideoOk returns a tuple with the Video field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetVideoOk() (*AiVideoSpec, bool) {
|
|
if o == nil || IsNil(o.Video) {
|
|
return nil, false
|
|
}
|
|
return o.Video, true
|
|
}
|
|
|
|
// HasVideo returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasVideo() bool {
|
|
if o != nil && !IsNil(o.Video) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVideo gets a reference to the given AiVideoSpec and assigns it to the Video field.
|
|
func (o *AiModelInfo) SetVideo(v AiVideoSpec) {
|
|
o.Video = &v
|
|
}
|
|
|
|
// GetVoice returns the Voice field value if set, zero value otherwise.
|
|
func (o *AiModelInfo) GetVoice() AiVoiceSpec {
|
|
if o == nil || IsNil(o.Voice) {
|
|
var ret AiVoiceSpec
|
|
return ret
|
|
}
|
|
return *o.Voice
|
|
}
|
|
|
|
// GetVoiceOk returns a tuple with the Voice field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AiModelInfo) GetVoiceOk() (*AiVoiceSpec, bool) {
|
|
if o == nil || IsNil(o.Voice) {
|
|
return nil, false
|
|
}
|
|
return o.Voice, true
|
|
}
|
|
|
|
// HasVoice returns a boolean if a field has been set.
|
|
func (o *AiModelInfo) HasVoice() bool {
|
|
if o != nil && !IsNil(o.Voice) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVoice gets a reference to the given AiVoiceSpec and assigns it to the Voice field.
|
|
func (o *AiModelInfo) SetVoice(v AiVoiceSpec) {
|
|
o.Voice = &v
|
|
}
|
|
|
|
func (o AiModelInfo) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o AiModelInfo) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Access) {
|
|
toSerialize["access"] = o.Access
|
|
}
|
|
if !IsNil(o.CanonicalSlug) {
|
|
toSerialize["canonical_slug"] = o.CanonicalSlug
|
|
}
|
|
if !IsNil(o.Class) {
|
|
toSerialize["class"] = o.Class
|
|
}
|
|
if !IsNil(o.ContextWindow) {
|
|
toSerialize["context_window"] = o.ContextWindow
|
|
}
|
|
if !IsNil(o.Created) {
|
|
toSerialize["created"] = o.Created
|
|
}
|
|
if !IsNil(o.Description) {
|
|
toSerialize["description"] = o.Description
|
|
}
|
|
if !IsNil(o.Expires) {
|
|
toSerialize["expires"] = o.Expires
|
|
}
|
|
if !IsNil(o.Family) {
|
|
toSerialize["family"] = o.Family
|
|
}
|
|
if !IsNil(o.Free) {
|
|
toSerialize["free"] = o.Free
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.Inputs) {
|
|
toSerialize["inputs"] = o.Inputs
|
|
}
|
|
if !IsNil(o.MaxOutputTokens) {
|
|
toSerialize["max_output_tokens"] = o.MaxOutputTokens
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Object) {
|
|
toSerialize["object"] = o.Object
|
|
}
|
|
if !IsNil(o.Outputs) {
|
|
toSerialize["outputs"] = o.Outputs
|
|
}
|
|
if !IsNil(o.OwnedBy) {
|
|
toSerialize["owned_by"] = o.OwnedBy
|
|
}
|
|
if !IsNil(o.Premium) {
|
|
toSerialize["premium"] = o.Premium
|
|
}
|
|
if !IsNil(o.Pricing) {
|
|
toSerialize["pricing"] = o.Pricing
|
|
}
|
|
if !IsNil(o.Provider) {
|
|
toSerialize["provider"] = o.Provider
|
|
}
|
|
if !IsNil(o.SupportsReasoning) {
|
|
toSerialize["supports_reasoning"] = o.SupportsReasoning
|
|
}
|
|
if !IsNil(o.SupportsTools) {
|
|
toSerialize["supports_tools"] = o.SupportsTools
|
|
}
|
|
if !IsNil(o.SupportsVision) {
|
|
toSerialize["supports_vision"] = o.SupportsVision
|
|
}
|
|
if !IsNil(o.Video) {
|
|
toSerialize["video"] = o.Video
|
|
}
|
|
if !IsNil(o.Voice) {
|
|
toSerialize["voice"] = o.Voice
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *AiModelInfo) UnmarshalJSON(data []byte) (err error) {
|
|
varAiModelInfo := _AiModelInfo{}
|
|
|
|
err = json.Unmarshal(data, &varAiModelInfo)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = AiModelInfo(varAiModelInfo)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "access")
|
|
delete(additionalProperties, "canonical_slug")
|
|
delete(additionalProperties, "class")
|
|
delete(additionalProperties, "context_window")
|
|
delete(additionalProperties, "created")
|
|
delete(additionalProperties, "description")
|
|
delete(additionalProperties, "expires")
|
|
delete(additionalProperties, "family")
|
|
delete(additionalProperties, "free")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "inputs")
|
|
delete(additionalProperties, "max_output_tokens")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "object")
|
|
delete(additionalProperties, "outputs")
|
|
delete(additionalProperties, "owned_by")
|
|
delete(additionalProperties, "premium")
|
|
delete(additionalProperties, "pricing")
|
|
delete(additionalProperties, "provider")
|
|
delete(additionalProperties, "supports_reasoning")
|
|
delete(additionalProperties, "supports_tools")
|
|
delete(additionalProperties, "supports_vision")
|
|
delete(additionalProperties, "video")
|
|
delete(additionalProperties, "voice")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableAiModelInfo struct {
|
|
value *AiModelInfo
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableAiModelInfo) Get() *AiModelInfo {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableAiModelInfo) Set(val *AiModelInfo) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableAiModelInfo) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableAiModelInfo) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableAiModelInfo(val *AiModelInfo) *NullableAiModelInfo {
|
|
return &NullableAiModelInfo{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableAiModelInfo) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableAiModelInfo) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|