Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.99 KB

README.md

File metadata and controls

67 lines (46 loc) · 1.99 KB

ChitChat

ChatGPT Chatbot Experiments with OpenAI's public API.

chitchat

CI

Setup

Install Node.js and create an OpenAI API key.

Create a file named .env in the root directory with the following contents:

OPENAI_API_KEY=YOURKEY

Validate the API key and configuration using the CLI:

# install dependencies
npm install

# start the cli
npm run start

Scripts

Action Command Description
start npm run start CLI ChatGPT Chatbot Experiment
lint npm run lint Run static code analysis
format npm run format Format source files

Libraries

Library Reference
openai https://github.com/openai/openai-node
dotenv https://github.com/motdotla/dotenv
picocolors https://github.com/alexeyraspopov/picocolors
readline-sync https://github.com/anseki/readline-sync

Tools

Item Reference
Node.js https://nodejs.org
ESLint https://eslint.org
Prettier https://prettier.io
EditorConfig https://editorconfig.org

References

Item Reference
OpenAI https://openai.com
OpenAI Node https://github.com/openai/openai-node

License

This project is released under the MIT License.