Users hel_Sinki and Michael12 reported a bug in the Discourse AI plugin with Gemini integration: analyzing posts containing images triggers the error “no implicit conversion of Array into String.” Text-only posts work normally. hel_Sinki noted the issue occurs only with the default “creative” bot, while custom bots handle images correctly. sam requested configuration details and advised using non-preview Gemini models. hel_Sinki confirmed the issue was resolved after removing RAG (Retrieval-Augmented Generation) configuration. sam credited Roman for fixing the RAG-related bug and closed the issue. The problem appears tied to how image data is processed in combination with RAG settings, not the core image handling itself.
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:
I’m running into the same issue. Text-only posts work fine, but if there’s an image in the post, I get the same “no implicit conversion of Array into String” error.
From the error message, it seems like something in the image data is confusing the plugin or Gemini. Maybe it’s sending the image info in a way that the API doesn’t expect.
Good to know it only happens with certain bots. Hopefully, this gets sorted out soon.