Class: OpenAI::Models::Audio::Transcription::Logprob
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Audio::Transcription::Logprob
- Defined in:
- lib/openai/models/audio/transcription.rb
Instance Attribute Summary collapse
-
#bytes ⇒ Array<Float>?
The bytes of the token.
-
#logprob ⇒ Float?
The log probability of the token.
-
#token ⇒ String?
The token in the transcription.
Instance Method Summary collapse
-
#initialize(text: , logprobs: nil, usage: nil) ⇒ void
constructor
Some parameter documentations has been truncated, see OpenAI::Models::Audio::Transcription for more details.
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(text: , logprobs: nil, usage: nil) ⇒ void
Some parameter documentations has been truncated, see OpenAI::Models::Audio::Transcription for more details.
Represents a transcription response returned by model, based on the provided input.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/openai/models/audio/transcription.rb', line 40 class Logprob < OpenAI::Internal::Type::BaseModel # @!attribute token # The token in the transcription. # # @return [String, nil] optional :token, String # @!attribute bytes # The bytes of the token. # # @return [Array<Float>, nil] optional :bytes, OpenAI::Internal::Type::ArrayOf[Float] # @!attribute logprob # The log probability of the token. # # @return [Float, nil] optional :logprob, Float # @!method initialize(token: nil, bytes: nil, logprob: nil) # @param token [String] The token in the transcription. # # @param bytes [Array<Float>] The bytes of the token. # # @param logprob [Float] The log probability of the token. end |
Instance Attribute Details
#bytes ⇒ Array<Float>?
The bytes of the token.
51 |
# File 'lib/openai/models/audio/transcription.rb', line 51 optional :bytes, OpenAI::Internal::Type::ArrayOf[Float] |
#logprob ⇒ Float?
The log probability of the token.
57 |
# File 'lib/openai/models/audio/transcription.rb', line 57 optional :logprob, Float |
#token ⇒ String?
The token in the transcription.
45 |
# File 'lib/openai/models/audio/transcription.rb', line 45 optional :token, String |