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.
4.4 KiB
AiProviderUsageTotals
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| InputTokens | Pointer to int32 | [optional] | |
| OutputTokens | Pointer to int32 | [optional] | |
| Requests | Pointer to int32 | [optional] | |
| SpendCents | Pointer to int32 | [optional] | |
| Tokens | Pointer to int32 | [optional] |
Methods
NewAiProviderUsageTotals
func NewAiProviderUsageTotals() *AiProviderUsageTotals
NewAiProviderUsageTotals instantiates a new AiProviderUsageTotals 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
NewAiProviderUsageTotalsWithDefaults
func NewAiProviderUsageTotalsWithDefaults() *AiProviderUsageTotals
NewAiProviderUsageTotalsWithDefaults instantiates a new AiProviderUsageTotals 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
GetInputTokens
func (o *AiProviderUsageTotals) GetInputTokens() int32
GetInputTokens returns the InputTokens field if non-nil, zero value otherwise.
GetInputTokensOk
func (o *AiProviderUsageTotals) GetInputTokensOk() (*int32, bool)
GetInputTokensOk returns a tuple with the InputTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetInputTokens
func (o *AiProviderUsageTotals) SetInputTokens(v int32)
SetInputTokens sets InputTokens field to given value.
HasInputTokens
func (o *AiProviderUsageTotals) HasInputTokens() bool
HasInputTokens returns a boolean if a field has been set.
GetOutputTokens
func (o *AiProviderUsageTotals) GetOutputTokens() int32
GetOutputTokens returns the OutputTokens field if non-nil, zero value otherwise.
GetOutputTokensOk
func (o *AiProviderUsageTotals) GetOutputTokensOk() (*int32, bool)
GetOutputTokensOk returns a tuple with the OutputTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetOutputTokens
func (o *AiProviderUsageTotals) SetOutputTokens(v int32)
SetOutputTokens sets OutputTokens field to given value.
HasOutputTokens
func (o *AiProviderUsageTotals) HasOutputTokens() bool
HasOutputTokens returns a boolean if a field has been set.
GetRequests
func (o *AiProviderUsageTotals) GetRequests() int32
GetRequests returns the Requests field if non-nil, zero value otherwise.
GetRequestsOk
func (o *AiProviderUsageTotals) GetRequestsOk() (*int32, bool)
GetRequestsOk returns a tuple with the Requests field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRequests
func (o *AiProviderUsageTotals) SetRequests(v int32)
SetRequests sets Requests field to given value.
HasRequests
func (o *AiProviderUsageTotals) HasRequests() bool
HasRequests returns a boolean if a field has been set.
GetSpendCents
func (o *AiProviderUsageTotals) GetSpendCents() int32
GetSpendCents returns the SpendCents field if non-nil, zero value otherwise.
GetSpendCentsOk
func (o *AiProviderUsageTotals) GetSpendCentsOk() (*int32, bool)
GetSpendCentsOk returns a tuple with the SpendCents field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSpendCents
func (o *AiProviderUsageTotals) SetSpendCents(v int32)
SetSpendCents sets SpendCents field to given value.
HasSpendCents
func (o *AiProviderUsageTotals) HasSpendCents() bool
HasSpendCents returns a boolean if a field has been set.
GetTokens
func (o *AiProviderUsageTotals) GetTokens() int32
GetTokens returns the Tokens field if non-nil, zero value otherwise.
GetTokensOk
func (o *AiProviderUsageTotals) GetTokensOk() (*int32, bool)
GetTokensOk returns a tuple with the Tokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetTokens
func (o *AiProviderUsageTotals) SetTokens(v int32)
SetTokens sets Tokens field to given value.
HasTokens
func (o *AiProviderUsageTotals) HasTokens() bool
HasTokens returns a boolean if a field has been set.