Class: OpenAI::Models
- Inherits:
-
Object
- Object
- OpenAI::Models
- Defined in:
- lib/openai/models.rb
Instance Method Summary collapse
-
#initialize(access_token: nil, organization_id: nil) ⇒ Models
constructor
A new instance of Models.
- #list ⇒ Object
- #retrieve(id:) ⇒ Object
Constructor Details
#initialize(access_token: nil, organization_id: nil) ⇒ Models
Returns a new instance of Models.
3 4 5 6 |
# File 'lib/openai/models.rb', line 3 def initialize(access_token: nil, organization_id: nil) OpenAI.configuration.access_token = access_token if access_token OpenAI.configuration.organization_id = organization_id if organization_id end |