Django ChatGPT Integration is a web application that combines the power of Django, a robust web framework, with ChatGPT, an AI language model developed by OpenAI. This application allows users to interact with an AI-powered chatbot through a user-friendly chat interface.
- User-friendly chat interface for interacting with the chatbot.
- Seamless integration with ChatGPT APIs for intelligent conversational capabilities.
- User registration and authentication for personalized chatbot experiences.
- Conversation history storage and display for easy reference to previous interactions.
- Real-time communication using AJAX requests.
- Error handling to manage API communication errors.
Follow these steps to set up and run the Django ChatGPT Integration project:
-
Clone the repository:
git clone https://github.com/Ansarimajid/DjangoChatgpt.git
-
Navigate to the project directory:
cd django_chatbot
-
Install the project dependencies using pip:
pip install -r requirements.txt
-
Set up the necessary configurations:
OPENAI_API_KEY=your-api-key
-
Apply database migrations:
python manage.py migrate
-
Run the Django development server:
python manage.py runserver
-
Access the application in your web browser by visiting
http://localhost:8000
.
- Create an account or log in to your existing account.
- In the chat interface, type your message in the input field and click "Send" to receive a response from the chatbot.
- Chat with the chatbot and explore its capabilities.
- View the conversation history on the screen.
Contributions to the Django ChatGPT Integration project are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue in the GitHub repository.
This project is licensed under the MIT License.
- Django - Web framework used for building the application.
- ChatGPT - AI language model for generating chatbot responses.
For any inquiries or questions, please contact Ansarimajid.