https://github.com/fredm23579/openai-chat-commandline
chatGPT command line chat using nodejs which works on any command line.
https://github.com/fredm23579/openai-chat-commandline
ai chat chatgpt chatgpt-turbo command-line command-line-tool commandline openai openai-api openai-chatgpt
Last synced: 3 months ago
JSON representation
chatGPT command line chat using nodejs which works on any command line.
- Host: GitHub
- URL: https://github.com/fredm23579/openai-chat-commandline
- Owner: fredm23579
- License: mit
- Created: 2024-04-12T19:30:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-18T01:16:15.000Z (about 1 year ago)
- Last Synced: 2025-01-18T09:30:23.913Z (4 months ago)
- Topics: ai, chat, chatgpt, chatgpt-turbo, command-line, command-line-tool, commandline, openai, openai-api, openai-chatgpt
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChatGPT Command-Line Chat Application
## Description
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.## Features
- 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.## Prerequisites
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](https://platform.openai.com/signup))## Installation
To install ChatGPT Command-Line Chat, follow these steps:
```bash
git clone https://github.com/yourusername/openai-chat-commandline.git
cd openai-chat-commandline
npm install
```
## Configuration
Create a ```.env``` file in the root directory.
Add your OpenAI API key to the ```.env``` file:
```bash
OPENAI_API_KEY=Your-OpenAI-API-Key-Here
```
## Usage
To start the chat application, run the following command in your terminal:```bash
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.## Contributing
Contributions to the ChatGPT Command-Line Chat application are welcome. Please adhere to this project's code of conduct while participating.## License
This project is licensed under the MIT License - see the LICENSE file for details.## Contact
If you have any questions or want to contact me, please email me at [email protected] or file an issue here on GitHub.