raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.23k stars 2.92k forks source link

[ChatGPT] ...I always get API limit reach, but my API limit is not reach and I see no usage #13986

Open jifbrodeur opened 1 month ago

jifbrodeur commented 1 month ago

Extension

https://www.raycast.com/abielzulio/chatgpt

Raycast Version

1.80.0

macOS Version

14.6.1

Description

upon asking a ChatGPT question I get API limit reached

Screenshot 2024-08-12 at 11 32 42

Steps To Reproduce

  1. Simply ask any questions
  2. get the error

Current Behaviour

No response

Expected Behaviour

not getting the error when providing the API key

raycastbot commented 1 month ago

Thank you for opening this issue!

🔔 @abielzulio @erodactyl @pernielsentikaer @shichongrui @timolins @cruelmoney @abielzulio @abielzulio @k8scat @Nauxscript @aeither @leeonfield @husniadil you might want to have a look.

💡 Author and Contributors commands The author and contributors of `abielzulio/chatgpt` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot close as not planned` Closes the issue as not planned. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
husniadil commented 1 month ago

@jifbrodeur, are you using the Azure OpenAI service or the OpenAI Platform?

jifbrodeur commented 1 month ago

OpenAI

husniadil commented 1 month ago

Based on the error message, I believe this is not an issue from this extension. It says that you need to upgrade the billing/plan to pay-as-you-go.

Maybe you can check whether you got rate limited from OpenAI. I suggest you to check some possibilities that can happen with your situation. Some ideas you might consider checking:

Ref:

image

jifbrodeur commented 1 month ago

Hi, I created a new projet API key, gave it all rights, I am on a paid subscription for over 6 months, and I get the same error message. I don't feel very comfortable to put my API key in a lot of other application, is there a log that I could check to see the handshake between the extension and OpenAI? Thanks

husniadil commented 1 month ago

Hi, I created a new projet API key, gave it all rights, I am on a paid subscription for over 6 months, and I get the same error message. I don't feel very comfortable to put my API key in a lot of other application, is there a log that I could check to see the handshake between the extension and OpenAI?

Thanks

This is just my personal opinion. I always use different API keys for each app so I can control them whenever needed. If I want to check the usage for each API key, I just go to https://platform.openai.com/organization/usage/activity, or at the project level at https://platform.openai.com/usage/activity. Feel free to try this approach if you’re interested.

jifbrodeur commented 1 month ago

Hi, the approach you suggest is exactly what I did and I see no activity from the extension. Thanks for your help and suggestion.