Beta Assistants API ERROR

Hello everybody!

Have there been any changes regarding the use of beta assistants? Because yesterday I used it normally, today it is giving the following error: TypeError: Cannot read properties of undefined (reading 'assistants')

Below is a snippet of the code, thanks in advance!

const OpenAI = require('openai');
const secretKey = process.env.OPENAI_API_KEY;
const openai = new OpenAI({
  apiKey: secretKey,

async function newAssAndThr() {
  try {
    const assistant = await openai.beta.assistants.create({})

The Libraries for both the python and js were updated recently, might be worth checking that you have the latest.

1 Like