This is a simple project to test the OpenAI API. The idea is to create a simple chatbot that can answer questions about the OpenAI API. Also there is a simple function that can generate a picture based on a prompt.
- Clone the repository
git clone git@github.com:Narkobaron15/openai-pilot.git
- Install the dependencies
npm install
- Create a
.env
file in the root of the project and add the following environment variables:
OPENAI_API_KEY=your_openai_api_key
- Run the project
node --env-file=.env main.js