Skip to content

Node.js port of the Python examples in the DeepLearning.AI course "ChatGPT Prompt Engineering for Developers"

Notifications You must be signed in to change notification settings

jeromecovington/prompt-engineering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Prompt Engineering Examples

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.

Setup

  1. Clone this repo.
  2. Sign up for an OpenAI account.
  3. Fund it with a minimal amount credits. You can set a monthly limit.
  4. Create an OpenAI API key and copy it to a file .env at the root of this repo, using the .env.example for guidance.
  5. Install Node.js >= v18.
  6. Run npm install.
  7. Run each example, e.g. node examples/principle-1/tactic-1.js

About

Node.js port of the Python examples in the DeepLearning.AI course "ChatGPT Prompt Engineering for Developers"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published