Class: Roseflow::AI::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/roseflow/ai/provider.rb

Instance Method Summary collapse

Constructor Details

#initialize(name:, credentials:) ⇒ Provider

Returns a new instance of Provider.



8
9
10
11
12
# File 'lib/roseflow/ai/provider.rb', line 8

def initialize(name:, credentials:)
  @name = name
  @credentials = credentials
  initialize_provider
end

Instance Method Details

#modelsObject



14
15
16
# File 'lib/roseflow/ai/provider.rb', line 14

def models
  @models ||= provider.models
end