openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

insufficient_quota in _exceptions.py

Open akshit0201 opened this issue 1 year ago • 0 comments

Confirm this is a feature request for the Python library and not the underlying OpenAI API.

  • [X] This is a feature request for the Python library

Describe the feature or improvement you're requesting

Ratelimit error is not the only error related to code 429, insufficient funds is another one. Can we have another exception for this? Ratelimit is already handled internally by openai sdk, but insufficient funds needs to be handled externally by using a backup key.

Additional context

No response

akshit0201 avatar Aug 22 '24 18:08 akshit0201