Sha256: 81a965d3b3321d49fb4814958f2bb99fa7acbfea28878dbaa2d9b6916543c30f
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
module OpenAI class Finetunes def initialize(access_token: nil, organization_id: nil) Ruby::OpenAI.configuration.access_token = access_token if access_token Ruby::OpenAI.configuration.organization_id = organization_id if organization_id end def list OpenAI::Client.get(path: "/fine-tunes") end def create(parameters: {}) OpenAI::Client.post(path: "/fine-tunes", parameters: parameters) end def retrieve(id:) OpenAI::Client.get(path: "/fine-tunes/#{id}") end def cancel(id:) OpenAI::Client.post(path: "/fine-tunes/#{id}/cancel") end def events(id:) OpenAI::Client.get(path: "/fine-tunes/#{id}/events") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-openai-3.0.2 | lib/ruby/openai/finetunes.rb |