This is a chatgpt terminal interaction program developed using chatgpt-api for the purpose of initial experience learning.
nodejs version >= 18
git clone https://github.com/loclink/chatgpt-prompts.git
cd chatgpt-prompts
pnpm install
Create the .env
file in the root of your project, And fill in the correct OPENAI_API_KEY
.
Example:
OPENAI_API_KEY=sk-qwertyu123iopasd456fghjkl
pnpm start
After that, you can expand and develop more content on the basis of this.