Node.js port of the Python examples in the DeepLearning.AI course: ChatGPT Prompt Engineering for Developers.
Some of the code in this repo was "dogfooded" by asking ChatGPT to port the relevant Python example to Node.js, followed by manually cleaning up and correcting the result.
- Clone this repo.
- Sign up for an OpenAI account.
- Fund it with a minimal amount credits. You can set a monthly limit.
- Create an OpenAI API key and copy it to a file
.env
at the root of this repo, using the.env.example
for guidance. - Install Node.js >= v18.
- Run
npm install
. - Run each example, e.g.
node examples/principle-1/tactic-1.js