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
es_cli-0.1.0 vendor/bundle/ruby/3.1.0/gems/ruby-openai-7.3.1/lib/openai/models.rb
ruby-openai-7.3.1 lib/openai/models.rb
ruby-openai-7.3.0 lib/openai/models.rb
ruby-openai-7.2.0 lib/openai/models.rb
ruby-openai-7.1.0 lib/openai/models.rb
ruby-openai-7.0.1 lib/openai/models.rb
ruby-openai-7.0.0 lib/openai/models.rb
ruby-openai-transitory-v2-6.5.3 lib/openai/models.rb
ruby-openai-transitory-v2-6.5.2 lib/openai/models.rb
ruby-openai-transitory-v2-6.5.1 lib/openai/models.rb
ruby-openai-transitory-v2-6.5.0 lib/openai/models.rb
ruby-openai-6.5.0 lib/openai/models.rb
ruby-openai-6.4.0 lib/openai/models.rb
ruby-openai-6.3.1 lib/openai/models.rb
ruby-openai-6.3.0 lib/openai/models.rb
ruby-openai-6.2.0 lib/openai/models.rb
ruby-openai-6.1.0 lib/openai/models.rb
ruby-openai-6.0.1 lib/openai/models.rb
ruby-openai-6.0.0 lib/openai/models.rb
ruby-openai-5.2.0 lib/openai/models.rb