- Issue created by @hiramanpatil
- 🇩🇪Germany marcus_johansson
That error message comes from the OpenAI API endpoint, please check that you have money on your account and that you have set limits for the key.
You can use https://platform.openai.com/ to check if you get a similar error there. If you get a similar error there, please close this ticket, otherwise we more need information to solve this ticket.
If you feel that this is an actual bug, please revert it to a bug request, but I will change this into a support request for the time being.
Note that we will not do any support for the free OpenAI accounts, but you are free to ask the community for help.
- 🇮🇳India hiramanpatil
Thank you for the quick response. Getting the same error using CURL.
$ curl https://api.openai.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer OPENAI_API_KEY" -d '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "write a haiku about ai"}]}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 432 100 337 100 95 549 154 --:--:-- --:--:-- --:--:-- 714{
"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": null,
"code": "insufficient_quota"
}
}