Class: OpenAI::Provider

Inherits:
Object
  • Object
show all
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

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

#inspectString

Returns:

  • (String)


11
# File 'lib/openai/provider.rb', line 11

def inspect = "#<OpenAI::Provider>"