Class: Roseflow::Actions::AI::ResolveProvider

Inherits:
Object
  • Object
show all
Extended by:
Roseflow::Action
Defined in:
lib/roseflow/actions/ai/resolve_provider.rb

Class Method Summary collapse

Methods included from Roseflow::Action

extended

Class Method Details

.resolve_provider(provider) ⇒ Object



22
23
24
25
26
27
# File 'lib/roseflow/actions/ai/resolve_provider.rb', line 22

def self.resolve_provider(provider)
  case provider
  when :openai
    Roseflow::AI::Provider.new(name: :openai, credentials: Roseflow::OpenAI::Config.new)
  end
end