Lightroom photo keyword tagging / Keywords repeated 1000 times and more per image

Hi there,

I’m currently developing an Adobe Lightroom plugin which sends photos to the Gemini REST API and asks for keywords/tags describing the content. This works pretty well in 95% of the requests. But on some random(?) occasions a single keyword gets repeated for 1000 times or more in the response, also these requests take a very long time to complete. The impact on the result in Lightroom is not really an issue, since keywords are unique in Lightroom as long as there hierarchy of the keyword is also the same, which is the case. So the question is, why does this happen, and can I circumvent this. Or if it is a bug, where can I file a report for that.

Many thanks in advance.
Bastian