tknishh / nodejs-chatbot

Migrating open-ai api node.js v3 config to v4.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT Terminal Chatbot

Welcome to the ChatGPT Terminal Chatbot! This project allows you to interact with OpenAI's ChatGPT using a Node.js application running in the terminal.

Table of Contents

Features

  • Interact with ChatGPT directly in your terminal.
  • Easy-to-use Node.js application.
  • Customizable configuration for a personalized experience.

Installation

  1. Get your OpenAI API key at OpenAI API Keys.

  2. Create a file named .env in the project root and add the following:

    OPENAI_API_KEY=YOURKEY
    

    Replace YOURKEY with your actual OpenAI API key.

  3. Install the required dependencies:

    npm install

Usage

  1. Run the bot:

    npm start
  2. Interact with the ChatGPT in your terminal by typing messages and receiving responses.

  3. To exit the chatbot, simply type:

    exit

Author

@tknishh

About

Migrating open-ai api node.js v3 config to v4.


Languages

Language:JavaScript 100.0%