You’re a Java developer. Go do Java development where that’s needed. You can use this AI prototyping phase as a feather in your proverbial cap. Considering the landscape today, that might not be a bad thing.
Of course, on the other hand this job gives you an income and something new to learn. If it’s uninteresting or unsatisfying then you have to make the decision on if it’s worth it to stay on.
As others have said - go look and see what’s out there. You might find a better fit.
Imagine how easy it will be for them to hide default settings no one would even know existed.