Class: OpenAI::Models::Realtime::ConversationItemInputAudioTranscriptionCompletedEvent::Usage::TranscriptTextUsageTokens
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::ConversationItemInputAudioTranscriptionCompletedEvent::Usage::TranscriptTextUsageTokens
- Defined in:
- lib/openai/models/realtime/conversation_item_input_audio_transcription_completed_event.rb
Defined Under Namespace
Classes: InputTokenDetails
Instance Attribute Summary collapse
-
#input_token_details ⇒ OpenAI::Models::Realtime::ConversationItemInputAudioTranscriptionCompletedEvent::Usage::TranscriptTextUsageTokens::InputTokenDetails?
Details about the input tokens billed for this request.
-
#input_tokens ⇒ Integer
Number of input tokens billed for this request.
-
#output_tokens ⇒ Integer
Number of output tokens generated.
-
#total_tokens ⇒ Integer
Total number of tokens used (input + output).
-
#type ⇒ Symbol, :tokens
The type of the usage object.
Instance Method Summary collapse
-
#initialize(input_tokens:, output_tokens:, total_tokens:, input_token_details: nil, type: :tokens) ⇒ Object
constructor
Usage statistics for models billed by token usage.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(input_tokens:, output_tokens:, total_tokens:, input_token_details: nil, type: :tokens) ⇒ Object
Usage statistics for models billed by token usage.
|
|
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_completed_event.rb', line 128
|
Instance Attribute Details
#input_token_details ⇒ OpenAI::Models::Realtime::ConversationItemInputAudioTranscriptionCompletedEvent::Usage::TranscriptTextUsageTokens::InputTokenDetails?
Details about the input tokens billed for this request.
125 126 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_completed_event.rb', line 125 optional :input_token_details, -> { OpenAI::Realtime::ConversationItemInputAudioTranscriptionCompletedEvent::Usage::TranscriptTextUsageTokens::InputTokenDetails } |
#input_tokens ⇒ Integer
Number of input tokens billed for this request.
101 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_completed_event.rb', line 101 required :input_tokens, Integer |
#output_tokens ⇒ Integer
Number of output tokens generated.
107 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_completed_event.rb', line 107 required :output_tokens, Integer |
#total_tokens ⇒ Integer
Total number of tokens used (input + output).
113 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_completed_event.rb', line 113 required :total_tokens, Integer |
#type ⇒ Symbol, :tokens
The type of the usage object. Always ‘tokens` for this variant.
119 |
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_completed_event.rb', line 119 required :type, const: :tokens |