Class: Openai::Client::Models
- Inherits:
-
Object
- Object
- Openai::Client::Models
- Defined in:
- lib/openai/client/models.rb
Constant Summary collapse
- PATH =
'models'
Instance Method Summary collapse
-
#delete(id) ⇒ Hash
Public: Makes an API call to delete a model.
-
#find(id) ⇒ Hash
Public: Makes an API call to find the model by the ID.
-
#list ⇒ Hash
Public: Makes an API call to return all models.
Instance Method Details
#delete(id) ⇒ Hash
Public: Makes an API call to delete a model.
36 37 38 39 40 |
# File 'lib/openai/client/models.rb', line 36 def delete(id) Http.new.delete("#{PATH}/#{id}").body rescue Faraday::Error nil end |