Class: OpenAI::Models::Audio::TranscriptionTextDeltaEvent::Logprob

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

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, 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(token: nil, bytes: nil, logprob: nil) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Audio::TranscriptionTextDeltaEvent::Logprob for more details.

Parameters:

  • token (String) (defaults to: nil)

    The token that was used to generate the log probability.

  • bytes (Array<Object>) (defaults to: nil)

    The bytes that were used to generate the log probability.

  • logprob (Float) (defaults to: nil)

    The log probability of the token.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/openai/models/audio/transcription_text_delta_event.rb', line 43

class Logprob < OpenAI::Internal::Type::BaseModel
  # @!attribute token
  #   The token that was used to generate the log probability.
  #
  #   @return [String, nil]
  optional :token, String

  # @!attribute bytes
  #   The bytes that were used to generate the log probability.
  #
  #   @return [Array<Object>, nil]
  optional :bytes, OpenAI::Internal::Type::ArrayOf[OpenAI::Internal::Type::Unknown]

  # @!attribute logprob
  #   The log probability of the token.
  #
  #   @return [Float, nil]
  optional :logprob, Float

  # @!method initialize(token: nil, bytes: nil, logprob: nil)
  #   Some parameter documentations has been truncated, see
  #   {OpenAI::Models::Audio::TranscriptionTextDeltaEvent::Logprob} for more details.
  #
  #   @param token [String] The token that was used to generate the log probability.
  #
  #   @param bytes [Array<Object>] The bytes that were used to generate the log probability.
  #
  #   @param logprob [Float] The log probability of the token.
end

Instance Attribute Details

#bytesArray<Object>?

The bytes that were used to generate the log probability.

Returns:

  • (Array<Object>, nil)


54
# File 'lib/openai/models/audio/transcription_text_delta_event.rb', line 54

optional :bytes, OpenAI::Internal::Type::ArrayOf[OpenAI::Internal::Type::Unknown]

#logprobFloat?

The log probability of the token.

Returns:

  • (Float, nil)


60
# File 'lib/openai/models/audio/transcription_text_delta_event.rb', line 60

optional :logprob, Float

#tokenString?

The token that was used to generate the log probability.

Returns:

  • (String, nil)


48
# File 'lib/openai/models/audio/transcription_text_delta_event.rb', line 48

optional :token, String