Welcome to the repository of our ChatGPT web application, a marriage between the power of artificial intelligence and the human-like interaction of a chat interface. This application employs an open-source GPT model, providing a conversational AI experience that allows us to answer follow-up questions, admit mistakes, challenge incorrect premises, and reject inappropriate requests.
Built using a combination of React, GoLang, and Python, this application represents a comprehensive full-stack solution. React is employed to create a user-friendly and interactive front end, GoLang handles server-side operations, and Python manages the GPT model server.
In the initial stages of the project, the plan was to use OpenAI's API. However, to overcome certain limitations and to provide a more flexible solution, the decision was made to switch to an open-source GPT model. The result is an application that is capable of handling real-time chat with the GPT model, offering a dynamic and engaging user experience.
Whether you're a developer interested in the mechanics of integrating a GPT model into a full-stack application, or a user fascinated by the capabilities of AI in chat interfaces, we welcome you to explore this project further.
React - goLang - python
To set up the repository on your local machine, follow these steps carefully:
Clone the repository to your local machine using the following command:
git clone https://github.com/seyed0123/OXDebate.git
Navigate to the server directory and install the backend dependencies:
export GO111MODULE="on"
go mod tidy
go run src/main.go
Navigate to the client directory, install the frontend dependencies, and start the front-end server:
cd front
npm install
npm start
Run the gpt.ipynb
file that installs the packages and starts the server.
GPT 4 model is used from this repo and thanks for their collaborator's hard work
Type in the input field and click on the send button to interact with the GPT model. The responses are displayed on the webpage.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page. Don't hesitate to drop any suggestions or improvements you have in mind.
NOTE: There is a problem connecting Python and Golang in the socket and I am glad to find someone who can help me correct this bug
Distributed under the MIT License. See LICENSE for more information.