This is a command-line chat application powered by OpenAI's GPT-3.5 Turbo model, designed to run in any command-line interface. It allows users to interact with ChatGPT in a text-based format directly from their terminal, providing a responsive and engaging AI-powered chat experience.
- Simple and intuitive text-based chat interface.
- Leverages the powerful GPT-3.5 Turbo model for generating responses.
- Runs on any command-line interface across different operating systems.
Before you begin, ensure you have met the following requirements:
- Node.js (v14.0 or newer recommended)
- npm (Node Package Manager)
- An API key from OpenAI (see OpenAI API)
To install ChatGPT Command-Line Chat, follow these steps:
git clone https://github.com/yourusername/openai-chat-commandline.git
cd openai-chat-commandline
npm install
Create a .env
file in the root directory.
Add your OpenAI API key to the .env
file:
OPENAI_API_KEY=Your-OpenAI-API-Key-Here
To start the chat application, run the following command in your terminal:
node chat.js
You will be prompted to enter your questions or statements. After each input, the application will generate and display a response from ChatGPT.
Contributions to the ChatGPT Command-Line Chat application are welcome. Please adhere to this project's code of conduct while participating.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or want to contact me, please email me at motta@g.ucla.edu or file an issue here on GitHub.