powered by
Shortcut that creates an OpenAI client from the OPENAI_API_KEY environment variable and lists all vector stores.
OPENAI_API_KEY
list_vector_stores(...)
A list with $data — a list of vector store objects.
$data
Parameters passed to VectorStoresClient$list(): limit, order, after, before.
$list()
limit
order
after
before
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