Class: OpenAI::Models::CompletionChoice::Logprobs
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::CompletionChoice::Logprobs
- Defined in:
- lib/openai/models/completion_choice.rb
Overview
Instance Attribute Summary collapse
- #text_offset ⇒ Array<Integer>?
- #token_logprobs ⇒ Array<Float>?
- #tokens ⇒ Array<String>?
- #top_logprobs ⇒ Array<Hash{Symbol=>Float}>?
Instance Method Summary collapse
- #initialize(text_offset: nil, token_logprobs: nil, tokens: nil, top_logprobs: nil) ⇒ Object constructor
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(text_offset: nil, token_logprobs: nil, tokens: nil, top_logprobs: nil) ⇒ Object
|
# File 'lib/openai/models/completion_choice.rb', line 81
|
Instance Attribute Details
#text_offset ⇒ Array<Integer>?
64 |
# File 'lib/openai/models/completion_choice.rb', line 64 optional :text_offset, OpenAI::Internal::Type::ArrayOf[Integer] |
#token_logprobs ⇒ Array<Float>?
69 |
# File 'lib/openai/models/completion_choice.rb', line 69 optional :token_logprobs, OpenAI::Internal::Type::ArrayOf[Float] |