Sha256: cfdbc0641bbe05ab07a9c8030c59f073dd87dab6287e11b4d90087cd051f1702

Contents?: true

Size: 227 Bytes

Versions: 22

Compression:

Stored size: 227 Bytes

Contents

module OpenAI
  class Models
    def initialize(client:)
      @client = client
    end

    def list
      @client.get(path: "/models")
    end

    def retrieve(id:)
      @client.get(path: "/models/#{id}")
    end
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
ruby-openai-5.1.0 lib/openai/models.rb
ruby-openai-5.0.0 lib/openai/models.rb