openai.vectorStores does not exist

I’m using node, v4.38.3

The documentation say:

const vectorStore = await openai.vectorStores.createAndPoll({
  name: "Product Documentation",
  file_ids: ['file_1', 'file_2', 'file_3', 'file_4', 'file_5']

However, vectorStores doesn’t exist in the openai object. It does exist on openai.beta but createAndPoll doesn’t seem to.

Not allowed to create links but I have looked in the source of the node openAi library and I can’t see it.

What am I missing?

It’s supposed to be openai.beta.vectorStores.createAndPoll – apologies for the error in the documentation. I’ll fix it right now.