Sha256: 912276ae4d5727724b2adbd488d6264f489ea6a70cbb319524b32be6a8ab9ab7
Contents?: true
Size: 566 Bytes
Versions: 19
Compression:
Stored size: 566 Bytes
Contents
module OpenAI class Finetunes def initialize(client:) @client = client end def list @client.get(path: "/fine_tuning/jobs") end def create(parameters: {}) @client.json_post(path: "/fine_tuning/jobs", parameters: parameters) end def retrieve(id:) @client.get(path: "/fine_tuning/jobs/#{id}") end def cancel(id:) @client.json_post(path: "/fine_tuning/jobs/#{id}/cancel", parameters: {}) end def list_events(id:) @client.get(path: "/fine_tuning/jobs/#{id}/events") end end end
Version data entries
19 entries across 19 versions & 3 rubygems