# Automatische AI-beeldonderschriftinstelling niet opgeslagen

**URL:** https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223
**Category:** Support
**Tags:** ai, ai-helper
**Created:** [8 juni 2024 om 05:54 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223 "2024-06-08T05:54:34Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [8 juni 2024 om 05:54 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/1 "2024-06-08T05:54:34Z")

</div>

Hello 👋

I’ve tried to set up the automatic AI image caption and it seems the settings not saved. When I click the Enable button on modal it seems works until I reload the page. Then when I go to the setting to enable it the setting seems not save.

The difference between Meta and my site is the checkbox. If I turn on / off here it keeps checked / unchecked after I save it. On my site it’s always unchecked.

It doesn’t matter I turn on this setting the uploaded image won’t automatically captioned. 🤔

I didn’t notice any error in console or logs.

Thanks 🙂

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [10 juni 2024 om 10:25 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/2 "2024-06-10T10:25:26Z")

</div>

Hello 👋 Is anybody experienced it? If so than we can move it to #Contribute > Bug 🤔

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [10 juni 2024 om 15:54 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/3 "2024-06-10T15:54:50Z")

</div>

Setting is saved without problems. But captions are never created. So something funny is happening there.

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [10 juni 2024 om 17:36 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/4 "2024-06-10T17:36:09Z")

</div>

> [@Don](#):
>
> when I go to the setting to enable it the setting seems not save.

🤔 hmmm that’s odd can you please check your `/u/don.json` on your site and see if you have `user.user_option.auto_image_caption` property?

> [@Jagster](#):
>
> Setting is saved without problems. But captions are never created. So something funny is happening there.

Setting is working for me, and the captions are creating. There is some criteria for auto captions:

- it contains images
- images are not small (\> 0.4 MP)
- their current alt text is bad (single word, less than 20 chars)

Is it still not creating captions even with images under this criteria?

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [10 juni 2024 om 18:24 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/5 "2024-06-10T18:24:19Z")

</div>

> [@keegan](#):
>
> images are not small (\> 0.4 MP)

I can’t count using marketing metrics such MP is, but those are 1024xsomething by pixelsize.

> **This didn’t get a caption**
>
> ![IMG_5129](https://global.discourse-cdn.com/meta/original/4X/0/c/9/0c995075e11884569d2fb9175c53bd779761c679.jpeg)

Does Discourse use filename instead if there is not an alt text? Those are always under 20 chars 🤔

I think this should split in two. We are off topic now.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [10 juni 2024 om 18:37 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/6 "2024-06-10T18:37:43Z")

</div>

> [@keegan](#):
>
> can you please check your `/u/don.json` on your site and see if you have `user.user_option.auto_image_caption` property?

Thanks @keegan! I’ve checked it.  
Here, I can see `"auto_image_caption": true` so maybe the criteria not meet 🤔  
but

> [@keegan](#):
>
> images are not small (\> 0.4 MP)

The images, I tried to upload is mobile made photos. These are more then 0.4MP, I think. 🤔 Unfortunately now I can’t check it. _My phone is broken…_

> [@keegan](#):
>
> their current alt text is bad (single word, less than 20 chars)

I tried to upload images with same format of alt text. For example: `IMG_20240610_xxxx`. Sometimes generates the alt text when it’s uploaded, sometimes not.

I think it would be better to generate every uploaded image…

* * *

On my site I checked the `/u/username.json` too but I didn’t find the “auto\_image\_caption”. 🤔 I think it’s because I can’t save it on my settings the checkbox is always unchecked. Maybe a conflict with other plugin 🤔 But if it’s unchecked should I see `"auto_image_caption": false`?

My site setting is:  
`ai helper enabled features`: image\_caption  
`ai auto image caption allowed groups`: trust\_level\_4  
`ai helper image caption model`: Google - gemini-1.5-flash

* * *

Finally, I can turn on my phone. Testing time 🙂

No alt text generated

 ![IMG_20240609_081728](https://global.discourse-cdn.com/meta/original/4X/d/c/e/dceddbf5a72078ba5e4699d318b877a7f553f54c.jpeg)  
3648x2736px 2.93MB

 ![IMG_20240609_081702](https://global.discourse-cdn.com/meta/original/4X/8/3/1/83104b089dc56908d2025b7aeb1f1145f24361c0.jpeg)  
3648x2736px 4.17MB

Maybe the automatic image optimization compress it too small to start the alt image captioning. 🤔

Let’s try bigger images.

 ![IMG_20240611_140303](https://global.discourse-cdn.com/meta/original/4X/1/b/9/1b9a108bba06dfbf9b9d3fba6952916d3e3ef23e.jpeg)  
5472x7296px 10.56MB

 ![IMG_20240611_140425](https://global.discourse-cdn.com/meta/original/4X/6/a/a/6aa6ff80d87be577168276818aa34919f6fab684.jpeg)  
5472x7296px 9.91MB

Unfortunately it didn’t generate Alt text 😕

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [11 juni 2024 om 22:49 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/7 "2024-06-11T22:49:54Z")

</div>

> [@Don](#):
>
> On my site I checked the `/u/username.json` too but I didn’t find the “auto\_image\_caption”. 🤔 I think it’s because I can’t save it on my settings the checkbox is always unchecked.

It should still appear even if you can’t save it in your settings. The field should appear and show `false`…

There are a[few things necessary](https://github.com/discourse/discourse-ai/blob/a1c649965fb09c74dfd62126429b4242c646367e/lib/ai_helper/entry_point.rb#L47-L56) for it to be setup.

- Do you have `discourse-ai` installed and enabled?
- `SiteSetting.composer_ai_helper` enabled?
- `SiteSetting.ai_helper_enabled_features` includes `image_caption`
- Is the user you are testing with on your site a member of the groups set under `SiteSetting.ai_auto_image_caption_allowed_groups` ?

Could you confirm you have these setup? ☝

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [12 juni 2024 om 03:48 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/8 "2024-06-12T03:48:29Z")

</div>

> [@keegan](#):
>
> `SiteSetting.composer_ai_helper` enabled?

Thanks, this was it. 🙂 I’ve enabled this site setting and now the auto image caption setting saved correctly.

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [17 juni 2024 om 04:50 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/9 "2024-06-17T04:50:49Z")

</div>

> [@keegan](#):
>
> - Do you have `discourse-ai` installed and enabled?
> - `SiteSetting.composer_ai_helper` enabled?
> - `SiteSetting.ai_helper_enabled_features` includes `image_caption`
> - Is the user you are testing with on your site a member of the groups set under `SiteSetting.ai_auto_image_caption_allowed_groups` ?

Yes. all are done.

But every time I insert the image I’ve to click `Caption with AI` in the composer window’s preview area.

Is there a way that all images are ‘Automatically Captioned with AI’, without the need of clicking on “Caption with Ai”?

---

<div class="post-metadata">

### Author: ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)
#### Post date: [13 juli 2024 om 12:42 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/10 "2024-07-13T12:42:22Z")

</div>

> [@Don](#):
>
> Hello 👋 Is anybody experienced it? If so than we can move it to #bug::category 🤔

1. [https://forums.powershell.org/t/ai-captions-are-impossible-to-enable/24439?u=beedellrokejulianloc](https://forums.powershell.org/t/ai-captions-are-impossible-to-enable/24439?u=beedellrokejulianloc)
2. [AI captions are impossible to enable - Techlore - Techlore Forum](https://discuss.techlore.tech/t/ai-captions-are-impossible-to-enable/9200)

Whatever misconfiguration is occurring, it’s commonplace.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [13 juli 2024 om 13:11 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/11 "2024-07-13T13:11:25Z")

</div>

The setting is saved, for me anyway. I get AI-caption automatically quite rarely gives a feeling there is some strange going. At one point I was totally sure it works on public categories only, but now I’m quite sure it is just depending size of images. Same reason why `[grid]` is useless.

So… I reckon the actual issue, vanishing settings, is fixed. Kind of, because killing history, cache and cookies of Safari (iPad) wakes up the request of allowing automatic caption, and on every category, but then it suddendly stops. It shouldn’t ask it, because on settings I’ve allowed captioning.

I think we need a new topic of ghosting AI that is possessed by strange spirits.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [12 augustus 2024 om 13:12 UTC](https://meta.discourse.org/t/automatic-ai-image-caption-setting-not-saved/311223/12 "2024-08-12T13:12:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
