Sha256: 54a68eafb0b80addd2337cb744c028c289faaf0958a6e5375e395b9f837c5b3b
Contents?: true
Size: 467 Bytes
Versions: 21
Compression:
Stored size: 467 Bytes
Contents
# frozen_string_literal: true require 'dotenv' # Dotenv.load(".env.#{ENV['APP_ENV']}") # Loads environment-specific dotenv file. Dotenv.load('.env') OpenAI.configure do |config| tools_enabled = ENV.fetch('TOOLS_ENABLED', 'false') if tools_enabled == 'true' puts 'Tools are enabled, OpenAI will allow net connections' config.access_token = ENV.fetch('OPENAI_ACCESS_TOKEN') config.organization_id = ENV.fetch('OPENAI_ORGANIZATION_ID', nil) end end
Version data entries
21 entries across 21 versions & 1 rubygems