Elliott-Chong / chatpdf-yt

https://chatpdf-elliott.vercel.app
641 stars 263 forks source link

Rate limit reached for text-embedding-ada-002 #39

Open CodeOfMugiwara opened 6 months ago

CodeOfMugiwara commented 6 months ago

After facing so many issues and errors finally the project is finished. and when I run the project once again it's not creating the chat and an error is displayed....

Rate limit reached for text-embedding-ada-002 in organization org-xjhxbxTHUyTzN4yftLmU3EDd on requests per min (RPM): Limit 3, Used 3, Requested 1. Please try again in 20s. Visit https://platform.openai.com/account/rate-limits to learn more. You can increase your rate limit by adding a payment method to your account at https://platform.openai.com/account/billing.

@Elliott-Chong

Screenshot 2023-12-19 182826

What is the reason of this error and how can I resolve this error.

Indu-Chandana commented 6 months ago

The rate limit for this model is set to 3 req per min, and u have already used all three reqs. Consequently, when attempting another req, the rate limit is reached, resulting in the error message u received.

To resolve this issue

  1. send smaller word count pdfs
  2. increace ur rate limit by adding a payment method to ur OpenAI account through the billing section.