Fout "geen impliciete conversie van Array naar String" bij gebruik van Gemini AI-analyse op berichten met afbeeldingen

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 like

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.

Ik loop tegen hetzelfde probleem aan. Posts die alleen tekst bevatten werken prima, maar als er een afbeelding in de post staat, krijg ik dezelfde “no implicit conversion of Array into String” foutmelding.

Uit de foutmelding lijkt het erop dat iets in de afbeeldingsgegevens de plugin of Gemini in de war brengt. Misschien worden de afbeeldingsgegevens op een manier verzonden die de API niet verwacht.

Goed om te weten dat het alleen gebeurt bij bepaalde bots. Hopelijk wordt dit snel opgelost.

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.

Bevestigd: nadat ik de RAG-configuratie had verwijderd, keerde de beeldanalysefunctionaliteit terug naar normaal. Bedankt voor de hulp!

1 like

@Roman heeft de RAG-problemen opgelost, dus ik ga ervan uit dat alles nu goed is, bedankt voor het melden!

2 likes