Scrapegraph-ai icon indicating copy to clipboard operation
Scrapegraph-ai copied to clipboard

insufficient_quota

Open silvacarl2 opened this issue 9 months ago • 8 comments

Describe the bug keep getting insufficient_quota when testing with google colab.

To Reproduce run the colab example

Expected behavior it is probably rate limiting because it is trying to call openai too fast.

Screenshots run the colab example

Additional context I think if there is a parameter to adjust the rate it is accessing openai API as a parameter to this call smart_scraper_graph.run(), it should work fine.

anotehr approach would be to support some open hosted LLMs, like together.ai llama-3-70b, and it may not have this issue.

silvacarl2 avatar May 03 '24 00:05 silvacarl2

Thanks for the feedback! We will add it, also it is possible to integrate a retry mechanism using tenacity

PeriniM avatar May 03 '24 09:05 PeriniM

ok cool, i will check that out.

also, i need to see ow to get this to work with open LLMs.

silvacarl2 avatar May 03 '24 22:05 silvacarl2

Let us know man

VinciGit00 avatar May 04 '24 17:05 VinciGit00

Do u have any news?

VinciGit00 avatar May 07 '24 07:05 VinciGit00

have not had a chance to focus on this yet but will do.

silvacarl2 avatar May 07 '24 17:05 silvacarl2

please try the new version

VinciGit00 avatar May 12 '24 07:05 VinciGit00

still get this error from OpenAI: RateLimitError

silvacarl2 avatar May 13 '24 00:05 silvacarl2

This is because the website you want to scrape is too big, you have to increase your biking plan on OpenAI

VinciGit00 avatar May 13 '24 06:05 VinciGit00