# Issues configuring AI image captions

**URL:** https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980
**Category:** Support
**Tags:** ai, ai-helper
**Created:** [March 8, 2024, 5:42am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980 "2024-03-08T05:42:31Z")
**Posts on this page:** 20
**Page:** 1

<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: [March 8, 2024, 5:42am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/1 "2024-03-08T05:42:31Z")

</div>

Setting seems to be set:

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

But there doesn’t appear the ‘caption’ button in the editor:

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/a/6/1a6ad2631f60df117c8325fc879f771c2ca488fc.png)

How can I make it work?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 8, 2024, 6:52pm UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/2 "2024-03-08T18:52:17Z")

</div>

If you want to use this on your own instance you need to set your [Configure API Keys for OpenAI](https://meta.discourse.org/t/configure-api-keys-for-openai/280783) and then set the aí image caption model to use it.

---

<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: [March 9, 2024, 10:32am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/3 "2024-03-09T10:32:55Z")

</div>

I generated the open-ai secret key here:

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/4/e/04e8954350b553013fb1cf9540e072ee45f87d81.png)

And pasted that key here:

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

Also ai plugin is working ok:

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

But I was expecting the image captioning to work here (it didn’t):

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/9/e/e9e044caa15a354b80515941d1af05b0cdead702.jpeg)

---

<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: [March 9, 2024, 11:05am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/4 "2024-03-09T11:05:03Z")

</div>

~~You have to create API at OpenAI, it is theirs. And pay too~~

My bad, I didn’t have my reading glass.

Are you using right model? And groups are ok? Do you see any strange errors?

---

<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: [March 12, 2024, 8:11am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/5 "2024-03-12T08:11:51Z")

</div>

> [@Jagster](#):
>
> Are you using right model

I don’t know. What’s the ‘Modal’?

> [@Jagster](#):
>
> And groups are ok?

Yes I hope so. I didn’t touch most of the default settings since I setup my website a few years back.

> [@Jagster](#):
>
> Do you see any strange errors?

No, not at all.  
I can post a video if that’d help in helping me.

---

<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: [March 12, 2024, 9:23am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/6 "2024-03-12T09:23:21Z")

</div>

Model of AI is basically like if using Mac or Windows, or in this case is using Win10 or Win11. Out there is different type AI solutions and those have different models.

But you are interested in these settings:

 ![IMG_2940](https://global.discourse-cdn.com/meta/original/4X/d/0/3/d03ea3b520112af9a9021e54510f254257282d41.jpeg)

Same thing what Falco said earlier:

> [@AI Image Captioning Feature in Discourse AI Plugin](https://meta.discourse.org/t/ai-image-captioning-feature-in-discourse-ai-plugin/296087/14):
>
> then set the aí image caption model to use it

But.

> [@AI Image Captioning Feature in Discourse AI Plugin](https://meta.discourse.org/t/ai-image-captioning-feature-in-discourse-ai-plugin/296087/17):
>
> I didn’t touch most of the default settings since I setup my website a few years back

And website is same as your forum? But few years back there wasn’t AI available and by default all AI-settings are kind of off. But you have create API by OpenAI so you have changed at least some settings. Should you doublecheck who can use AI helper then?

**edit**

Per this post:

> [@Bathinda](#):
>
> Setting seems to be set

You are trying to use wrong model. You have llama in use, but you are customer of OpenAi.

---

<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: [March 12, 2024, 1:16pm UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/7 "2024-03-12T13:16:05Z")

</div>

##### You were correct, ‘Ai Helper Features’ didn’t have ‘Image\_Caption’ selected.

Also, ai helper image caption model was corrected.  
But now when I click ‘Caption with AI’ in composing window, it is giving ‘500 error’.  
Thanks.

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/9/b/99b19eb30ab20f4071ec3f0436a4a27b5c0af610.png)

#### My current settings:

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/8/c/b8c358fe3402cdedbd85a78e2f07f28aa8dec0c8.png)

---

<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: [March 13, 2024, 5:09am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/8 "2024-03-13T05:09:14Z")

</div>

Calling @pfaffman @itsbhanusharma  
Can you pls help, if it (“Error 500” while generating auto-captioning photos in Composer window) is some small omission/commission from my side.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [March 13, 2024, 5:35am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/9 "2024-03-13T05:35:27Z")

</div>

Sorry, not an AI expert by any means. But 5xx series errors are server side so it could be that the AI endpoint is not working as expected? Can you check the logs to see if there is something obvious there?

---

<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: [March 13, 2024, 8:06am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/10 "2024-03-13T08:06:39Z")

</div>

Whatever research I was able to do, I find that perhaps I need to be on a higher ‘Plus’ plan of Open-Ai to be able to use ‘Open Gpt-4 Preview’. Because I find the ‘Ai-Image-Captioning’ only allows 2 models, either Llava (which I couldn’t know how to create api etc), and Gpt-4.

So that may be the problem that Open-Ai Api key isn’t allowing the usage of ‘Image Captioning’ to me.

If I’m correct, I’d recommend to mention this fact, under that ‘Image Captioning’ site in Discourse Settings.

---

<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: [March 13, 2024, 8:29am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/11 "2024-03-13T08:29:40Z")

</div>

Plus plan is for ChatGPT and that you use only via website of OpenAI. It has nothing to do with this. In your forum you are using API and API is charged totally differently usin pay-per-use and that price depends what model you are using and how many tokens you are spending.

I’m totally sure your settings are still wrong somewhere.

---

<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: [March 13, 2024, 8:39am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/12 "2024-03-13T08:39:21Z")

</div>

I’ve set this Open\_Ai secret key:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/e/6/4/e6499f85886173459a84e54412939a9f801c66bf.png)

Still, as the below given SS shows, ‘Open-Ai’ doesn’t give any response to me (and I think this is the culprit of not responding to my calls to Ai-generated-captions):

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/d/3/5d31daa6ac825f378a539d51dd78cee2f9d4cbe0.png)

I say this, because Ai\_Generated-Captions need either Llava or Gpt-4-Vision-Preview to work:

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/8/9/889ae7baa202423392e6a78dbfc953f1dd2cb41a.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 13, 2024, 10:32am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/13 "2024-03-13T10:32:50Z")

</div>

I would not offer help, but you asked.

Check the logs for the error. I’m pretty sure when I’ve seen a 500 error it was because my account was out of money, so it’s almost certainly (in my very limited experience) something about the other end refusing to do the work.

---

<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: [March 13, 2024, 10:58am UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/14 "2024-03-13T10:58:54Z")

</div>

I don’t argue against, because it was some time ago when that happened to me, but I’m quite-almost sure it didn’t show up as error 500 when trying to run some operation (like that newer semantic popup search that gives error 500 on my forum).

It shows up in error log as 400, 429 or something like that, but not error 500 — its role is totally different)

API of OpenAI has/had some issues, but it happened just recently and OP’s headache has been there longer.

But I had money issue in my mind too, but only because of that mix with ChatGPT Plus.

---

<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: [March 13, 2024, 12:41pm UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/15 "2024-03-13T12:41:41Z")

</div>

> [@pfaffman](#):
>
> I would not offer help, but…

Ok. Its not my place to ask ‘why’. Also because you’ve already helped a lot many-many people around here, including me. Even perhaps the people who, including me, didn’t deserve that much help.  
Reader will perhaps take it as ‘pampering’, but truth is, but for @pfaffman , many people, including me, won’t be using ‘Discourse’ based websites today. As, 4-5 years ago, ‘Discourse’ seemed/was too difficult to install and setup for wordpress people in the initial years. And it was then that @pfaffman kept answering similar questions again and again, patiently, of all new users. Sometimes even users like me were afraid, whether it was ethically correct to ask so much naive questions to one helping body!!

Only people like my skillset, who setup discourse websites around (or before) 2018 can truly appreciate @pfaffman 's contribution to Discourse community. And I don’t know what’s it like today, but at that time, ‘D’ team was very limited, and helping hands were severely few (read ‘one’ only). I can only wish, if someday ‘D’ success story counted the persons behind its success, P was kept in the row of first few people without whom, it wouldn’t go that far, in that much time (excuse me for my English).

> [@Jagster](#):
>
> But I had money issue in my mind too

At least money doesn’t seem to be the issue (check out SS below):

 ![The image shows a dark-themed user interface of a software platform displaying no usage or expenditure for a monthly service, with options to view cost and activity, and reflects a zero out of a five-dollar limit on a donut chart. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/c/0/7/c07b85c7b1dfae7db049329d9275e51c02378db6.png)

> [@pfaffman](#):
>
> the other end refusing to do the work

🤔

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 13, 2024, 12:45pm UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/16 "2024-03-13T12:45:06Z")

</div>

When I look at that image I see “State: Expired.”

I’m pretty sure that “Expired” is not a state in which you can get it to do work.

You can also look at the logs and see the error there.

> [@Bathinda](#):
>
> Ok. Its not my place to ask ‘why’.

Because I don’t have much expertise in the AI plugin, so I’d let someone else answer.

---

<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: [March 13, 2024, 1:00pm UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/17 "2024-03-13T13:00:39Z")

</div>

> [@pfaffman](#):
>
> I’m pretty sure that “Expired” is not a state in which you can get it to do work.

I checked and have deduced that those are merely those (free or paid I don’t remember) credits which got expired last year (seeing the ss carefully confirms this).

When I tried to buy new credits, it only increased my limit from $5 to $120 now. But credits still show in ‘Expired’ state.

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/b/d/cbdbf2e077467d6f5756e2f4f8161ea4f0b3dade.png)

> [@pfaffman](#):
>
> Because I don’t have much expertise in the AI plugin

Still, its you only, who put up me in some (right) direction.

And last, you won’t believe, and I don’t know if I’m allowed to say so here or not but, I too am a small Pfaffman in my local community. Proofs of which are available on Google, but most in my own native ‘Hindi’ language. [My website](https://BathindaHelper.com).

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 13, 2024, 1:15pm UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/18 "2024-03-13T13:15:39Z")

</div>

> [@Bathinda](#):
>
> you won’t believe, and I don’t know if I’m allowed to say so here or not but, I too am a small Pfaffman in my local community.

That’s quite flattering. If I didn’t recognize your contributions I’d likely not have answered so willingly. I know you’ve helped many people here.

> [@Bathinda](#):
>
> But credits still show in ‘Expired’ state.

Well, that’s in support of my original claim that I don’t know anything about this! 🤣

---

<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: [March 13, 2024, 1:24pm UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/19 "2024-03-13T13:24:40Z")

</div>

> [@pfaffman](#):
>
> I know you’ve helped many people here.

Just to record things correctly, I didn’t help people on this (meta) website. I’m recognized as a ‘helper’ in my local (Bathinda) city circle, community (thus my website name: Bathinda Helper).

@Falco can you pls see why Discourse isn’t sending any api request to [Open-Ai.com](http://Open-Ai.com) (as this below given activity tab of ai website shows), even when I’ve tried to Caption diff images in my composer window?

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/e/a/7ea7290a08de7bb46d00bb68f2f954394dbc82dd.png)  
My other relevant settings SS have been posted above, I think repeating those won’t be good.

---

<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: [March 13, 2024, 1:57pm UTC](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980/20 "2024-03-13T13:57:19Z")

</div>

> [@Bathinda](#):
>
> When I tried to buy new credits

I’m quite sure that is one problem too. Have they withdrawn money from your card?

An account with credit should look like this one:

 ![The image shows a billing interface for March displaying a monthly bill usage at 13% of a IMG_294420 limit, with a current charge of IMG_29445.19, and a section on credit grants with used and expired amounts. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/1/c/b/1cb5eab78f68fbcd9f351a271d9da65409ad2e03.jpeg)

And the reason why there isn’t any tokens moving is

- you don’t have any other AI-activities on
- error 500 happends on your site (but the reason for that could be lack of credits, but then your error log must show something)

If your log is empty, or there isn’t any relevant happenings, I still claim your settings aren’t right.

For example.

We can use new AI-semantic search. On my forum it gives error 500. It is not happening because of issues on OpenAI side (or so I reckon) but because this error `Failed to process hijacked response correctly : ArgumentError : address cannot be nil or empty` and comes from my end.

Sure. It can be a bug or my settings are funny, but my point is when you see error 500 on your screen it raises from your setup. And because AI captioning works AFAIK everywhere else but not for you then the issue is

- your settings, or
- somehow your version

[Next page](https://meta.discourse.org/t/issues-configuring-ai-image-captions/298980.md?page=2)
