Class: Openai::Base
- Inherits:
-
Object
- Object
- Openai::Base
- Defined in:
- lib/openai/base.rb
Overview
Base class of openai
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(api_key = "") ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(api_key = "") ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 |
# File 'lib/openai/base.rb', line 9 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 |