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

Version Path
es_cli-0.1.0 vendor/bundle/ruby/3.1.0/gems/ruby-openai-7.3.1/lib/openai/finetunes.rb
ruby-openai-7.3.1 lib/openai/finetunes.rb
ruby-openai-7.3.0 lib/openai/finetunes.rb
ruby-openai-7.2.0 lib/openai/finetunes.rb
ruby-openai-7.1.0 lib/openai/finetunes.rb
ruby-openai-7.0.1 lib/openai/finetunes.rb
ruby-openai-7.0.0 lib/openai/finetunes.rb
ruby-openai-transitory-v2-6.5.3 lib/openai/finetunes.rb
ruby-openai-transitory-v2-6.5.2 lib/openai/finetunes.rb
ruby-openai-transitory-v2-6.5.1 lib/openai/finetunes.rb
ruby-openai-transitory-v2-6.5.0 lib/openai/finetunes.rb
ruby-openai-6.5.0 lib/openai/finetunes.rb
ruby-openai-6.4.0 lib/openai/finetunes.rb
ruby-openai-6.3.1 lib/openai/finetunes.rb
ruby-openai-6.3.0 lib/openai/finetunes.rb
ruby-openai-6.2.0 lib/openai/finetunes.rb
ruby-openai-6.1.0 lib/openai/finetunes.rb
ruby-openai-6.0.1 lib/openai/finetunes.rb
ruby-openai-6.0.0 lib/openai/finetunes.rb