I realized that shared chats with AI weren't very convenient, so I decided to separate them between users so as not to disturb each other. Therefore, I added a registration and authorization system.
What's changed:
- Chat isolation: Now each user registers their own account, and all chats they create are completely private. No one can view other users' conversations or send them messages.
- Stable operation: The platform under the hood uses the Solid Trifecta. In particular, the Solid Queue background queue is already set up and working for requests to the OpenAI. There will be no problem with simultaneous use of the site by multiple users. The architecture is ready for this.
- Registration works successfully, but I decided to skip the password reset functionality for now. For it to work properly, it requires setting up an SMTP server and sending emails, and I'm not sure that this is absolutely necessary for the current scope of this project.