Contained is a repository containing a Dockerized Django application with features for handling Client Requests to chat-gpt the gpt-3.5 model is used since text-davinci-003 is deprecated..
Make sure you have Docker Desktop Running on your local machine
-
Clone the repository to your local machine:
git clone https://github.com/Usmaexe/Contained.git cd Contained git ChatGptApi update --init --recursive
-
Build and run the Docker containers:
docker-compose up -d --build
-
Access the Django application:
Open your web browser and go to http://localhost:8089/
ChatGptApi/
: Contains Django application source code, templates and the endpointvenv/
: Virtual environment for Python dependenciesdocker-compose.yml
: Docker Compose configuration fileDockerfile
: Dockerfile for building the Docker imagerequirements.txt
: Located in ChatGptApi it is a List of Python dependencies
The docker-compose.yml
file is configured to mount the ChatGptApi
directory as the source code for the Django application and expose the necessary ports.
It also maps the Content.csv
file from the host to the container.
- The application will be accessible at http://localhost:8089/
- The CSV file is stored in the
ChatGptApi/data/
directory in the container. - This project is actively maintained and will be updated in the future to incorporate improvements and additional features.
In case of any error on the requirement file, Run this command pip freeze > requirements.txt