Class: OpenAI::Models::Audio::TranscriptionTextDoneEvent::Usage::InputTokenDetails

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/audio/transcription_text_done_event.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

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, 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(audio_tokens: nil, text_tokens: nil) ⇒ void

Details about the input tokens billed for this request.

Parameters:

  • audio_tokens (Integer) (defaults to: nil)

    Number of audio tokens billed for this request.

  • text_tokens (Integer) (defaults to: nil)

    Number of text tokens billed for this request.



# File 'lib/openai/models/audio/transcription_text_done_event.rb', line 144

Instance Attribute Details

#audio_tokensInteger?

Number of audio tokens billed for this request.

Returns:

  • (Integer, nil)


136
# File 'lib/openai/models/audio/transcription_text_done_event.rb', line 136

optional :audio_tokens, Integer

#text_tokensInteger?

Number of text tokens billed for this request.

Returns:

  • (Integer, nil)


142
# File 'lib/openai/models/audio/transcription_text_done_event.rb', line 142

optional :text_tokens, Integer