Exception: OpenAI::Helpers::Streaming::LengthFinishReasonError
- Inherits:
-
StreamError
- Object
- StandardError
- StreamError
- OpenAI::Helpers::Streaming::LengthFinishReasonError
- Defined in:
- lib/openai/helpers/streaming/exceptions.rb
Instance Attribute Summary collapse
-
#completion ⇒ Object
readonly
Returns the value of attribute completion.
Instance Method Summary collapse
-
#initialize(completion:) ⇒ LengthFinishReasonError
constructor
A new instance of LengthFinishReasonError.
Constructor Details
#initialize(completion:) ⇒ LengthFinishReasonError
Returns a new instance of LengthFinishReasonError.
11 12 13 14 |
# File 'lib/openai/helpers/streaming/exceptions.rb', line 11 def initialize(completion:) @completion = completion super("Stream finished due to length limit") end |
Instance Attribute Details
#completion ⇒ Object (readonly)
Returns the value of attribute completion.
9 10 11 |
# File 'lib/openai/helpers/streaming/exceptions.rb', line 9 def completion @completion end |