Module: LlmProviders::Providers
- Defined in:
- lib/llm_providers/providers.rb,
lib/llm_providers/providers/base.rb,
lib/llm_providers/providers/google.rb,
lib/llm_providers/providers/openai.rb,
lib/llm_providers/providers/anthropic.rb,
lib/llm_providers/providers/openrouter.rb
Defined Under Namespace
Classes: Anthropic, Base, Google, Openai, Openrouter
Class Method Summary collapse
Class Method Details
.build(name, **options) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/llm_providers/providers.rb', line 11 def self.build(name, **) klass = case name.to_s when "openai" then Openai when "anthropic" then Anthropic when "google" then Google when "openrouter" then Openrouter else raise ArgumentError, "Unknown provider: #{name}" end klass.new(**) end |