Class: ActivePinecone::Openai

Inherits:
OpenAI::Client
  • Object
show all
Defined in:
lib/active_pinecone/openai.rb

Instance Method Summary collapse

Constructor Details

#initializeOpenai

Returns a new instance of Openai.



3
4
5
6
7
8
# File 'lib/active_pinecone/openai.rb', line 3

def initialize
  super(
    access_token: ActivePinecone.configuration.openai_access_token,
    request_timeout: ActivePinecone.configuration.openai_request_timeout
  )
end