A small project to explore fetching JSON data from an API endpoint and generate summaries using OpenAI's GPT-3.5 Turbo.
- Fetch JSON data from specified API endpoints.
- Generate summary of JSON content using OpenAI's GPT model.
- Customizable for different data types and structures.
- Clone the repository.
- Install dependencies:
pip install openai requests
- Set your OpenAI API key in the environment variables.
- Run the script and input the API URL when prompted.
python app.py
- OpenAI API key: Set your API key in a
.env
file for security. - Model and parameters: Adjust model settings in the script as needed.