Error "no implicit conversion of Array into String" when using Gemini AI analysis on posts with images

Hi everyone,

I’ve encountered an issue while using the Discourse AI plugin with Gemini integration. When I try to analyze posts that contain images, I get the following error message:

no implicit conversion of Array into String

What happens

  • If the post only contains text, everything works as expected.
  • If the post includes an image , the analysis fails with this error.

Environment

Installed 3.5.0.beta8-dev (70dbb95041)

Thanks for your help!