Import { ThreadMessage } from "openai/resources/beta/threads/index.mjs"; is no longer working. I was not able to find ThreadMessage in this path

I am trying to build an web application application using openAI assistant. I am not able to import ThreadMessage into my app. Have they changed the location of it now?

You probably want to be using something like Yarn or NPM package manager and specifying the latest version of things. Looks like you’re importing directly from a local file or something, and in normal circumstances that’s not the best practice. You may have reasons I’m not aware of, but I’m just trying to help. :slight_smile:

1 Like