Open AI assistants vector storres

const file = await openAI.files.create({
file: fs.createReadStream(“docs\currentDoc”),
purpose: “assistants”,

const vector_store = await openAI.beta.vector_stores.create({
    name: "Docs",
    file_ids: [],

When I use this code to make a vector store, I am met with this error. Is there any solution?

The API reference on the sidebar has examples with fewer errors.

import OpenAI from "openai";
const openai = new OpenAI();

async function main() {
  const vectorStore = await openai.beta.vectorStores.create({
    name: "Support FAQ"