Class: Openai::Client::Edits

Inherits:
Object
  • Object
show all
Defined in:
lib/openai/client/edits.rb

Constant Summary collapse

PATH =
'edits'

Instance Method Summary collapse

Instance Method Details

#create(body) ⇒ Hash

Public: Makes an API call to create edit.

Parameters:

  • body (Hash)

    request body

Returns:

  • (Hash)

    a hash with edit



14
15
16
17
18
# File 'lib/openai/client/edits.rb', line 14

def create(body)
  Http.new.post(PATH, body).body
rescue Faraday::Error
  nil
end