Class: DSPy::LM::AdapterFactory::AdapterData
- Inherits:
-
Object
- Object
- DSPy::LM::AdapterFactory::AdapterData
- Defined in:
- lib/dspy/lm/adapter_factory.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_prefix(provider_prefix) ⇒ Object
20 21 22 23 24 |
# File 'lib/dspy/lm/adapter_factory.rb', line 20 def self.from_prefix(provider_prefix) if ADAPTER_MAP.key?(provider_prefix) new(**ADAPTER_MAP[provider_prefix]) end end |
Instance Method Details
#require_path ⇒ Object
26 27 28 |
# File 'lib/dspy/lm/adapter_factory.rb', line 26 def require_path gem_name.tr('-', '/') end |