1. Redmi 6 pro has dual main camera. So the portrait mode doesn't have to be "AI".
2. It DOES work in China developer rom.
3. Front camera portrait mode works, so your rom obviously doesn't handle the dual cam hardware.
4. The problem isn't the camera app (tried the app from China rom)