1.2 KiB

Node Chat CLI

Overview

Node Chat CLI is a command line chat program that allows users to interact with OpenAI's API using the o4-mini model. Users can maintain multiple conversations, choose to start new conversations, or continue previous ones.

Features

  • Start a new conversation
  • Continue existing conversations
  • Store and retrieve conversation history
  • Interact with OpenAI's API for responses

Installation

  1. Clone the repository:

    git clone <repository-url>
    
  2. Navigate to the project directory:

    cd node-chat-cli
    
  3. Install the dependencies:

    npm install
    
  4. Create a .env file in the root directory and add your OpenAI API key:

    OPENAI_API_KEY=your_api_key_here
    

Usage

To start the application, run:

node src/index.js

Follow the prompts to start a new conversation or continue an existing one.

Example

  1. Start a new conversation:

    > Start a new conversation
    
  2. Continue a previous conversation:

    > Continue conversation with ID 1
    

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.

License

This project is licensed under the MIT License.