Skip to content

fredm23579/openai-chat-commandline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

Installation

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

Configuration

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

Usage

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.

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 motta@g.ucla.edu or file an issue here on GitHub.

Releases

No releases published

Packages

No packages published