Skip to content

Latest commit

 

History

History
108 lines (59 loc) · 3.39 KB

File metadata and controls

108 lines (59 loc) · 3.39 KB

ChatInference200ResponseUsage

Properties

Name Type Description Notes
InputTokens Pointer to int32 Number of input tokens [optional]
OutputTokens Pointer to int32 Number of output tokens [optional]
TotalTokens Pointer to int32 Total tokens consumed [optional]

Methods

NewChatInference200ResponseUsage

func NewChatInference200ResponseUsage() *ChatInference200ResponseUsage

NewChatInference200ResponseUsage instantiates a new ChatInference200ResponseUsage 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

NewChatInference200ResponseUsageWithDefaults

func NewChatInference200ResponseUsageWithDefaults() *ChatInference200ResponseUsage

NewChatInference200ResponseUsageWithDefaults instantiates a new ChatInference200ResponseUsage 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 *ChatInference200ResponseUsage) GetInputTokens() int32

GetInputTokens returns the InputTokens field if non-nil, zero value otherwise.

GetInputTokensOk

func (o *ChatInference200ResponseUsage) 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 *ChatInference200ResponseUsage) SetInputTokens(v int32)

SetInputTokens sets InputTokens field to given value.

HasInputTokens

func (o *ChatInference200ResponseUsage) HasInputTokens() bool

HasInputTokens returns a boolean if a field has been set.

GetOutputTokens

func (o *ChatInference200ResponseUsage) GetOutputTokens() int32

GetOutputTokens returns the OutputTokens field if non-nil, zero value otherwise.

GetOutputTokensOk

func (o *ChatInference200ResponseUsage) 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 *ChatInference200ResponseUsage) SetOutputTokens(v int32)

SetOutputTokens sets OutputTokens field to given value.

HasOutputTokens

func (o *ChatInference200ResponseUsage) HasOutputTokens() bool

HasOutputTokens returns a boolean if a field has been set.

GetTotalTokens

func (o *ChatInference200ResponseUsage) GetTotalTokens() int32

GetTotalTokens returns the TotalTokens field if non-nil, zero value otherwise.

GetTotalTokensOk

func (o *ChatInference200ResponseUsage) GetTotalTokensOk() (*int32, bool)

GetTotalTokensOk returns a tuple with the TotalTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTotalTokens

func (o *ChatInference200ResponseUsage) SetTotalTokens(v int32)

SetTotalTokens sets TotalTokens field to given value.

HasTotalTokens

func (o *ChatInference200ResponseUsage) HasTotalTokens() bool

HasTotalTokens returns a boolean if a field has been set.

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