Module: OpenAI::Internal::Type::DuplicableResponseCarrier Private
- Defined in:
- lib/openai/internal/type/duplicable_response_carrier.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Preserve response metadata behavior when callers duplicate a direct binary response.
Instance Method Summary collapse
- #dup ⇒ StringIO private
Instance Method Details
#dup ⇒ StringIO
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 17 18 19 |
# File 'lib/openai/internal/type/duplicable_response_carrier.rb', line 14 def dup(...) super.tap do |copy| copy.extend(OpenAI::ResponseCarrier, OpenAI::Internal::Type::DuplicableResponseCarrier) copy._set_last_response(last_response) end end |