Sha256: d6321a16130ba3f77a821d0a89a89b4823c05d4be64c7b7e8f6665add5d01815

Contents?: true

Size: 706 Bytes

Versions: 4

Compression:

Stored size: 706 Bytes

Contents

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

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

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-openai-7.3.1 lib/openai/vector_store_files.rb
ruby-openai-7.3.0 lib/openai/vector_store_files.rb
ruby-openai-7.2.0 lib/openai/vector_store_files.rb
ruby-openai-7.1.0 lib/openai/vector_store_files.rb