Class: GenAI::Image::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/gen_ai/image/base.rb

Direct Known Subclasses

OpenAI, StabilityAI

Instance Method Summary collapse

Methods included from Dependency

#depends_on

Instance Method Details

#editObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/gen_ai/image/base.rb', line 14

def edit(...)
  raise NotImplementedError, "#{self.class.name} does not support editing"
end

#generateObject

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/gen_ai/image/base.rb', line 6

def generate(...)
  raise NotImplementedError, "#{self.class.name} does not support generate"
end

#upscaleObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/gen_ai/image/base.rb', line 18

def upscale(...)
  raise NotImplementedError, "#{self.class.name} does not support upscaling"
end

#variationsObject

Raises:

  • (NotImplementedError)


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

def variations(...)
  raise NotImplementedError, "#{self.class.name} does not support variations"
end