This is a simple example project that demonstrates how to make API calls to ChatGPT using a Python application. The project is structured with model, controller, and service components.
The project has the following structure:
venv/
: Virtual environment directory.model.py
: Module for defining the data model.controller.py
: Module for handling API requests and responses.gptservices.py
: Module for interacting with the ChatGPT API.main.py
: Main application entry point.
-
Clone the repository:
git clone https://github.com/sha-linimoorthy/gptAPIcall.git
-
Navigate to the directory
-
Create and Activate a virtual environment