Class: GenAI::Image

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/gen_ai/image.rb,
lib/gen_ai/image/base.rb,
lib/gen_ai/image/open_ai.rb,
lib/gen_ai/image/stability_ai.rb

Defined Under Namespace

Classes: Base, OpenAI, StabilityAI

Instance Method Summary collapse

Constructor Details

#initialize(provider, token, options: {}) ⇒ Image

Returns a new instance of Image.



9
10
11
# File 'lib/gen_ai/image.rb', line 9

def initialize(provider, token, options: {})
  build_client(provider, token, options)
end