# Caption with AI button returns error 500 (on Meta)

**URL:** https://meta.discourse.org/t/caption-with-ai-button-returns-error-500-on-meta/297001
**Category:** Bug
**Tags:** ai, ai-helper
**Created:** [February 28, 2024, 4:11am UTC](https://meta.discourse.org/t/caption-with-ai-button-returns-error-500-on-meta/297001 "2024-02-28T04:11:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [February 28, 2024, 4:11am UTC](https://meta.discourse.org/t/caption-with-ai-button-returns-error-500-on-meta/297001/1 "2024-02-28T04:11:51Z")

</div>

In the composer, if you have an image and want to  
 ![image](https://global.discourse-cdn.com/meta/original/4X/3/9/c/39cd5519561a53df3378be6afaf018b7698f40b6.png)

it will result to a 500 error:

 ![NVIDIA_Share_TufBtC5n7z](https://global.discourse-cdn.com/meta/original/4X/9/f/0/9f0451182139165c956dfccb7f55e68989f23019.png)

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [February 28, 2024, 4:48am UTC](https://meta.discourse.org/t/caption-with-ai-button-returns-error-500-on-meta/297001/2 "2024-02-28T04:48:23Z")

</div>

I can definitely reproduce this:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/f/8/ef8ebea14195c992ab4b6a12a07e121c41e7754f.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/1/7/41792aac94c1cb85d1e09b1460a392f61bc3572f.png)

console errors:

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/2/2/02294abadcdf5249517733b55d912c71bd72f097.png)

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.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 28, 2024, 5:08am UTC](https://meta.discourse.org/t/caption-with-ai-button-returns-error-500-on-meta/297001/6 "2024-02-28T05:08:58Z")

</div>

I have the fix bundled in this PR

[https://github.com/discourse/discourse-ai/pull/495](https://github.com/discourse/discourse-ai/pull/495)

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [February 28, 2024, 11:09am UTC](https://meta.discourse.org/t/caption-with-ai-button-returns-error-500-on-meta/297001/7 "2024-02-28T11:09:08Z")

</div>

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)**
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/a/b/4/ab4d9abe613b9ba2382230d7a75df2b6c9775a90.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [March 2, 2024, 8:00am UTC](https://meta.discourse.org/t/caption-with-ai-button-returns-error-500-on-meta/297001/8 "2024-03-02T08:00:31Z")

</div>

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