This Python script generates ChatGPT prompts based on user-defined topics or a random prompt if no topic is provided. It uses the OpenAI API to generate responses to prompts.
- Clone the repository to your local machine:
- Install the required packages:
- Add your OpenAI API key to the
openai.api_key
variable in the script.
To use the script, run the following command in your terminal:
python app.py
The script will prompt you to enter a topic for the prompt. If you don't enter a topic, the script will generate a random prompt. It will then generate a ChatGPT response based on the prompt and print the prompt and response to the console.
This project is licensed under the Apache 2.0 license. See the LICENSE file for details.