288 of hanzoai/ai's 294 operations now declare a response, against 1 before. GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages — every address a client actually calls — used to reach this client untyped, because cloud's relay carried an operation's sentence and dropped the shapes it named. It carries both now. Fleet-wide the document goes from 69% to 81% of operations declaring what comes back, which is where the ~208 new models here come from.
2.5 KiB
OpenaiPromptTokensDetails
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| AudioTokens | Pointer to int32 | [optional] | |
| CachedTokens | Pointer to int32 | [optional] |
Methods
NewOpenaiPromptTokensDetails
func NewOpenaiPromptTokensDetails() *OpenaiPromptTokensDetails
NewOpenaiPromptTokensDetails instantiates a new OpenaiPromptTokensDetails 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
NewOpenaiPromptTokensDetailsWithDefaults
func NewOpenaiPromptTokensDetailsWithDefaults() *OpenaiPromptTokensDetails
NewOpenaiPromptTokensDetailsWithDefaults instantiates a new OpenaiPromptTokensDetails 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
GetAudioTokens
func (o *OpenaiPromptTokensDetails) GetAudioTokens() int32
GetAudioTokens returns the AudioTokens field if non-nil, zero value otherwise.
GetAudioTokensOk
func (o *OpenaiPromptTokensDetails) GetAudioTokensOk() (*int32, bool)
GetAudioTokensOk returns a tuple with the AudioTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetAudioTokens
func (o *OpenaiPromptTokensDetails) SetAudioTokens(v int32)
SetAudioTokens sets AudioTokens field to given value.
HasAudioTokens
func (o *OpenaiPromptTokensDetails) HasAudioTokens() bool
HasAudioTokens returns a boolean if a field has been set.
GetCachedTokens
func (o *OpenaiPromptTokensDetails) GetCachedTokens() int32
GetCachedTokens returns the CachedTokens field if non-nil, zero value otherwise.
GetCachedTokensOk
func (o *OpenaiPromptTokensDetails) GetCachedTokensOk() (*int32, bool)
GetCachedTokensOk returns a tuple with the CachedTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCachedTokens
func (o *OpenaiPromptTokensDetails) SetCachedTokens(v int32)
SetCachedTokens sets CachedTokens field to given value.
HasCachedTokens
func (o *OpenaiPromptTokensDetails) HasCachedTokens() bool
HasCachedTokens returns a boolean if a field has been set.