A simple Command Line Interface (CLI) for interacting with OpenAI's GPT-3.5 Turbo.
This CLI application allows you to have a conversation with the GPT-3.5 Turbo model. It prompts you to input messages, and the model responds with generated text based on your needs.
-
Clone the repository:
git clone https://github.com/BishoySedra/ChatGPT_Chat_CLI
-
Navigate to the project directory:
cd ChatGPT_Chat_CLI
-
Install dependencies:
npm install
-
Create an environment file:
Create a file named
.env
in the project root directory. -
Add your OpenAI API key:
Inside the
.env
file, add your OpenAI API key as follows:OPENAI_API_KEY=your_api_key_here
Replace
your_api_key_here
with your actual OpenAI API key. -
Run the CLI application with the following command:
npm start
Once the application starts, follow the prompts to start a conversation. Type "exit" to end the conversation and close the application.