Sha256: fe7d2f3772112f42533051c6efe2a52f7032b0e7ff2e52ebbb75baa3d0b864c2

Contents?: true

Size: 653 Bytes

Versions: 5

Compression:

Stored size: 653 Bytes

Contents

module OpenAI
  class VectorStores
    def initialize(client:)
      @client = client.beta(assistants: OpenAI::Assistants::BETA_VERSION)
    end

    def list(parameters: {})
      @client.get(path: "/vector_stores", parameters: parameters)
    end

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

    def create(parameters: {})
      @client.json_post(path: "/vector_stores", parameters: parameters)
    end

    def modify(id:, parameters: {})
      @client.json_post(path: "/vector_stores/#{id}", parameters: parameters)
    end

    def delete(id:)
      @client.delete(path: "/vector_stores/#{id}")
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
es_cli-0.1.0 vendor/bundle/ruby/3.1.0/gems/ruby-openai-7.3.1/lib/openai/vector_stores.rb
ruby-openai-7.3.1 lib/openai/vector_stores.rb
ruby-openai-7.3.0 lib/openai/vector_stores.rb
ruby-openai-7.2.0 lib/openai/vector_stores.rb
ruby-openai-7.1.0 lib/openai/vector_stores.rb