Cache when trying to change the API KEY

I was using a personal apy key in my study project, but I started receiving the quota limit error

“openai.RateLimitError: Error code: 429 - {‘error’: {‘message’: ‘You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.’, ‘type’: ‘insufficient_quota’, ‘param’: None, ‘code’: ‘insufficient_quota’}}”

The company I work for provided me with their API so I could continue studying, but I keep receiving the same error

I’m using Ubuntu and saved the API key in .bashrc

export OPENAI_API_KEY=“”

Has anyone else experienced this?

I’m using Python 3.11, conda and Ubuntu 24

1 Like

Please check if the change of your API-Key actually happened from the perspective of your code.

Also ask your company if there is sufficient balance on the account as the 429 error can also occur if there isn’t any balance left.

If this doesn’t resolve your issue, please check the following related threads:
1
2
3
4

Hope this helps! :hugs: