Class: OpenAI::Models::Audio::TranscriptionDiarized::Usage::Tokens::InputTokenDetails

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/audio/transcription_diarized.rb,
sig/openai/models/audio/transcription_diarized.rbs

Overview

See Also:

  • OpenAI::Models::Audio::TranscriptionDiarized::Usage::Tokens#input_token_details

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, 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

#initializeObject



103
# File 'sig/openai/models/audio/transcription_diarized.rbs', line 103

def initialize: (

Instance Attribute Details

#audio_tokensInteger?

Number of audio tokens billed for this request.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


116
# File 'lib/openai/models/audio/transcription_diarized.rb', line 116

optional :audio_tokens, Integer

#text_tokensInteger?

Number of text tokens billed for this request.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


122
# File 'lib/openai/models/audio/transcription_diarized.rb', line 122

optional :text_tokens, Integer

Instance Method Details

#to_hash{ audio_tokens: Integer, text_tokens: Integer }

Returns:

  • ({ audio_tokens: Integer, text_tokens: Integer })


108
# File 'sig/openai/models/audio/transcription_diarized.rbs', line 108

def to_hash: -> { audio_tokens: Integer, text_tokens: Integer }