Openai.beta.threads.create is deprecated? Which alternative to use?

I am starting to study the OpenAI API. I am putting together a simple project for user interaction with an assistant. My stack is NodeJS with Ts.
I am trying to create a thread, but using openai.beta.threads.create() I am getting a warning that it is deprecated. I would like some guidance on which alternative to use. My goal is simple: call a function that creates a thread and I have the thread_id.
I would like to thank you for your support. I am from Brazil and I want to advance even more within the OpenAI community.

Ah we are migrating from the Assistants API to Responses API – you should use this: https://platform.openai.com/docs/api-reference/responses!

Thanks for the feedback, I analyzed the response API here and I can actually use it, however, using the thread I can save the interactions, and this is essential in a more extensive dialogue.