hoarder icon indicating copy to clipboard operation
hoarder copied to clipboard

Open AI API Keys

Open nema69 opened this issue 1 year ago • 2 comments

Hey everyone, It seems like that inference only works with the depreceated "User API Keys" and not the new "Project API Keys" ? I only could get inference running after swithcing out the key. Otherwise I got 429 "You exceeded your current quota" errors. Anyone else had the same problem?

nema69 avatar Oct 06 '24 12:10 nema69

You're not the first one to report this problem. Will look into it, thanks for the report!

MohamedBassem avatar Oct 06 '24 17:10 MohamedBassem

Hello! I got the same error when first setting up, but creating a new project in OpenAI and a new key in this project fixed it for me. Can it be some kind of limitation of the default project?

deandersson avatar Oct 09 '24 18:10 deandersson

Same issue here still present in V18, i can;t get it to work with any API type.

Popcorncandy09 avatar Oct 17 '24 12:10 Popcorncandy09

Hello! I got the same error when first setting up, but creating a new project in OpenAI and a new key in this project fixed it for me. Can it be some kind of limitation of the default project?

thanks, that worked for me aswell

lkenner avatar Oct 26 '24 22:10 lkenner

I'm having the same issue, creating a new project did not fix it for me.

85elcamino avatar Oct 31 '24 20:10 85elcamino

Having the same issue as well, created a new project and new API key but didn't have any luck. I am new to OpenAI and I don't know how to set it up for the proper model though, so that might be on me.

TechnoMaverick avatar Nov 09 '24 16:11 TechnoMaverick

@85elcamino & @TechnoMaverick did you add funds to your OpenAI account?

MohamedBassem avatar Nov 09 '24 16:11 MohamedBassem

@MohamedBassem Thank you! I didn't realize how the funding worked, the pages setup on the OpenAI website are confusing.

I don't know if this is the right place to ask, but is it possible to change the default OpenAI prompt in the Hoarder app? I wanted to take some stuff out.

Thank you for the excellent app!

TechnoMaverick avatar Nov 09 '24 17:11 TechnoMaverick

@TechnoMaverick you can't take stuff out but you can add more rules in the AI settings page.

MohamedBassem avatar Nov 09 '24 17:11 MohamedBassem

@MohamedBassem Alrighty! Thank you.

TechnoMaverick avatar Nov 09 '24 17:11 TechnoMaverick

I hit this issue as well, tried to create a new project and added funds to my account. But it still gives the same error message.

Any idea how to fix or debug this further?

jakob1379 avatar Dec 27 '24 22:12 jakob1379

I hit this issue as well, tried to create a new project and added funds to my account. But it still gives the same error message.

Any idea how to fix or debug this further?

Tried the same again this morning by creating a new key and replacing the old one. I suspect I had not properly reloaded my docker stack...

jakob1379 avatar Dec 28 '24 09:12 jakob1379

@jakob1379 so it worked?

MohamedBassem avatar Dec 28 '24 09:12 MohamedBassem

Yes.

jakob1379 avatar Dec 28 '24 11:12 jakob1379

For me, adding an explicit ENV VARIABLE like this worked. INFERENCE_TEXT_MODEL: gpt-4o-mini-2024-07-18 INFERENCE_IMAGE_MODEL: gpt-4o-mini-2024-07-18 By default, the web container was erroring out saying the project prj_xxx does not have access to gpt-4o-mini model. I use the Project API Keys and not the legacy ones.

MKSG-MugunthKumar avatar Jan 01 '25 00:01 MKSG-MugunthKumar

It worked for me with the default project, but I needed to create a new key on https://platform.openai.com/api-keys after I added funds to my account, the old key (same settings) was still returning 429s.

faximan avatar Jan 03 '25 16:01 faximan

What @faximan did worked for me. I also had to delete my OpenAI API key that I created before adding funds to my account and recreate it.

PacketPalantir avatar Feb 15 '25 20:02 PacketPalantir

At this point, I don't think we have a bug in OpenAI API key handling. So closing this issue.

MohamedBassem avatar Feb 16 '25 21:02 MohamedBassem