Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 981 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 981 Bytes

Purpose

Quick & dirty CLI clone of ChatGPT that requires an OpenAI key.

Allows you to experiment with the API and various techniques such as preprocessing, postprocessing, and chaining, and so on

Prerequisites

  • *nix terminal or WSL for Windows
  • Docker
  • VS Code with devcontainers extension installed
  • An OpenAI API key

Instructions

  1. Clone this repository from your terminal:
git clone git@github.com:bill-c-martin/chatgpt-cli-clone.git
  1. Open in VS Code:
cd chatgpt-cli-clone && code .
  1. Open the VS Code command pallete (Ctrl+Shift+P) and entering Dev Containers: Reopen in container
  2. Open a new terminal window within VS Code itself
  3. Run npm install
  4. Add your OpenAI key to an OPENAI_API_KEY variable in a newly-created .env file, replacing your-key-here with your actual OpenAI API key:
echo "OPENAI_API_KEY=your-key-here" > .env
  1. Finally, start the ChatGPT CLI clone by runnning: node index.js