Caption with AI button returns error 500 (on Meta)

AI-generated summary

A bug has been reported on Meta where using the ‘Caption with AI’ button in the composer results in a 500 error when attempting to generate a caption for an image. Arkshine and Lilly have confirmed the issue, providing screenshots and console errors. The problem occurs after uploading an image and selecting the AI caption feature, leading to an empty caption box that cannot be saved. Sam has addressed the issue in a pull request (#495), and Lilly confirms the fix is working on Meta.

In the composer, if you have an image and want to
image

it will result to a 500 error:

2 Likes

I can definitely reproduce this:

console errors:

Repro:

  1. open composer and post an image
  2. use the caption with AI
  3. returns an error
  4. click OK and empty caption box appears that can be canceled but not saved.
2 Likes

I have the fix bundled in this PR

https://github.com/discourse/discourse-ai/pull/495

5 Likes

looks like it’s working on Meta again :slight_smile:

The image displays a screenshot of a social media or messaging app where a user named Sam Saffron, identified as co-founder, mentions that they have included a fix in a pull request (PR) related to the internal design of AI persona and a bug fix on GitHub, which appears to address issues with OpenAI's image description capabilities and mentionable items. (Captioned by AI)

1 Like

This topic was automatically closed after 3 days. New replies are no longer allowed.