Class: OpenAI::Provider
- Inherits:
-
Object
- Object
- OpenAI::Provider
- Defined in:
- lib/openai/provider.rb,
sig/openai/provider.rbs
Overview
Opaque configuration for an OpenAI-supported third-party provider.
Provider instances are created by factories in OpenAI::Providers.
Instance Method Summary collapse
-
#initialize(definition) ⇒ Provider
constructor
private
A new instance of Provider.
- #inspect ⇒ String
Constructor Details
#initialize(definition) ⇒ Provider
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Provider.
9 |
# File 'lib/openai/provider.rb', line 9 def initialize(definition) = @definition = definition |
Instance Method Details
#inspect ⇒ String
11 |
# File 'lib/openai/provider.rb', line 11 def inspect = "#<OpenAI::Provider>" |