שגיאה "no implicit conversion of Array into String" בשימוש בניתוח Gemini AI על פוסטים עם תמונות

סיכום מבוסס בינה מלאכותית

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.

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!

לייק 1

When I include an image in a public post, Gemini returns no reply,

when I send it via private message, the AI reports the error shown above.

The same behavior occurs across multiple AI models.

Only the default “creative” bot produces the above error; other custom AI bot can successfully recognize the image and respond normally.

אני נתקל באותה בעיה. פוסטים המכילים רק טקסט עובדים בסדר, אבל אם יש תמונה בפוסט, אני מקבל את אותה שגיאה “אין המרה מרומזת של מערך למחרוזת”.

מהודעת השגיאה, נראה שמשהו בנתוני התמונה מבלבל את התוסף או את Gemini.

אולי הוא שולח את מידע התמונה באופן שה-API לא מצפה לו.

טוב לדעת שזה קורה רק עם בוטים מסוימים. בתקווה, זה יסתדר בקרוב.

I am having trouble with a repro here, using creative with images enabled:

Can you share how your LLM is configured, be sure to use the non preview 2.0 / 2.5 flash model now that it is released.

מאושר: לאחר שהסרתי את תצורת ה-RAG, פונקציונליות ניתוח התמונות חזרה לקדמותה. תודה על העזרה!

לייק 1

@Roman_Rizzi תיקן את בעיות ה-RAG, אז אני מניח שהכל בסדר עכשיו, תודה על הדיווח!

2 לייקים