Class: Roseflow::OpenAI::OperationHandler
- Inherits:
-
Object
- Object
- Roseflow::OpenAI::OperationHandler
- Defined in:
- lib/roseflow/openai/operation_handler.rb
Constant Summary collapse
- OPERATION_CLASSES =
{ chat: Operations::Chat, completion: Operations::Completion, embedding: Operations::Embedding, image: Operations::Image, image_edit: Operations::ImageEdit, image_variation: Operations::ImageVariation, }
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(operation, options = {}) ⇒ OperationHandler
constructor
A new instance of OperationHandler.
Constructor Details
#initialize(operation, options = {}) ⇒ OperationHandler
Returns a new instance of OperationHandler.
22 23 24 25 |
# File 'lib/roseflow/openai/operation_handler.rb', line 22 def initialize(operation, = {}) @operation = operation @options = end |
Instance Method Details
#call ⇒ Object
27 28 29 |
# File 'lib/roseflow/openai/operation_handler.rb', line 27 def call operation_class.new(@options) end |