Learn R Programming

openaiRtools (version 0.2.2)

list_vector_stores: List Vector Stores (Convenience Function)

Description

Shortcut that creates an OpenAI client from the OPENAI_API_KEY environment variable and lists all vector stores.

Usage

list_vector_stores(...)

Value

A list with $data — a list of vector store objects.

Arguments

...

Parameters passed to VectorStoresClient$list(): limit, order, after, before.

Examples

Run this code
if (FALSE) {
Sys.setenv(OPENAI_API_KEY = "sk-xxxxxx")

stores <- list_vector_stores()
for (s in stores$data) cat(s$id, "-", s$name, "\n")
}

Run the code above in your browser using DataLab