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

**URL:** <https://meta.discourse.org/t/error-no-implicit-conversion-of-array-into-string-when-using-gemini-ai-analysis-on-posts-with-images/372015>\
**Category:** Bug\
**Tags:** ai\
**Created:** [June 27, 2025, 3:22pm UTC](https://meta.discourse.org/t/error-no-implicit-conversion-of-array-into-string-when-using-gemini-ai-analysis-on-posts-with-images/372015 "2025-06-27T15:22:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hel\_Sinki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hel_sinki/32/525916_2.png) [@hel\_Sinki](https://meta.discourse.org/u/hel_Sinki)\
**Post date:** [June 27, 2025, 3:22pm UTC](https://meta.discourse.org/t/error-no-implicit-conversion-of-array-into-string-when-using-gemini-ai-analysis-on-posts-with-images/372015/1 "2025-06-27T15:22:35Z")

</div>

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

 ![Screenshot 2025-06-27 at 08.20.23](https://global.discourse-cdn.com/meta/original/4X/3/8/2/3823376649f99b412fea517362b101d46199d62d.png)

### **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](https://github.com/discourse/discourse/commits/70dbb95041286abbe39accbd679f1ff100f9946d))

Thanks for your help!

---

_[View the full topic](https://meta.discourse.org/t/error-no-implicit-conversion-of-array-into-string-when-using-gemini-ai-analysis-on-posts-with-images/372015)._
