You need to install OpenAI to same folder where your program is running.

Easiest way to do this, is to open a console and head to the proper directory. There yu can write "npm instal openai".
This will install necessary library and you can use it. It's important to understand, that this solution installs openai to the same folder where you are.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence