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
-
Clone the repository:
git clone <repository-url> -
Navigate to the project directory:
cd node-chat-cli -
Install the dependencies:
npm install -
Create a
.envfile 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
-
Start a new conversation:
> Start a new conversation -
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.