Sha256: 9336d9b39920b8d5bd6e2df8b2d890b9761e03ed97b6c04e913f13c6873c7352

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

module Openai
  # Base class of openai
  class Base
    @openai_api_key = nil
    @openai_url = nil

    def initialize(api_key = "")
      @openai_api_key = api_key
      # hard the host because if the official docs change the host, maybe it will change another
      # we need to update this gem for any change
      @openai_url = "https://api.openai.com/v1/assistants"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openai-assistant-0.5.0 lib/openai/base.rb