This project is a backend implementation of a Chat GPT mirror (Monolithic Architecture)
Technologies used:
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these example steps.
- Clone the repo
git clone https://github.com/HubCreators/gpthub-backend
- Set environment variables in application root (
.env
)DB_PASSWORD=<postgres password> PASSWORD_SALT=<password salt> JWT_SIGNING_KEY=<JWT secret key> OPEN_API_KEY=<OpenAI secret key> GIN_MODE=debug
- Compile and build the project
make
After launch, go to the address in the browser
http://localhost:8080/docs/index.html
Here you can register a user and get a JWT access token.
Next, add the Authorization
header with the value Bearer <your access token>
on every request (use Authorization
button)
Authorized users can send requests to GPT chat by sending requests to /api/v1/chat
.
At the moment, only the ability to communicate with the ChatGPT is implemented, but in the future it is planned to add template prompts that add more context to the chat request.
- Implement ChatGPT request method with context
- Add logic for working with the mail service
- Add logic for admin "panel"
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Alexey Fedoseev - @fedoseev_alexey - rv1nnie@yandex.ru
Project Link: gpthub-backend