Git Product home page Git Product logo

Comments (4)

tm-robinson avatar tm-robinson commented on September 14, 2024 1

Related to #617 which I'm currently working on a fix for.

@matthewgertner there is an initial fix in the pre/beta branch now (see this commit fd0a902 ) but it will only work for OpenAI models at the moment.

from scrapegraph-ai.

VinciGit00 avatar VinciGit00 commented on September 14, 2024

Hi, can you share the code and the error

from scrapegraph-ai.

matthewgertner avatar matthewgertner commented on September 14, 2024

Code:

# Create an instance of SmartScraperGraph with specific instructions
smart_scraper_graph = ScriptCreatorGraph(
    prompt="List the name, price and description for each product. Make sure that you include every product.",  # The AI prompt specifies what to extract
    source="https://www.miele.co.uk/category/1022125/ovens-and-built-in-cookers",  # URL of the website from which to scrape data
    config=graph_config,  # Uses predefined configuration settings
)

# Execute the scraping process
result = smart_scraper_graph.run()

Error:

openai.RateLimitError: Error code: 429 - {'error': {'message': 'Request too large for gpt-4o in organization org-owSMgmqDOmy9zGOv1Lzt4Ypi on tokens per min (TPM): Limit 10000, Requested 222359. The input or output tokens must be reduced in order to run successfully. 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.', 'type': 'tokens', 'param': None, 'code': 'rate_limit_exceeded'}}

from scrapegraph-ai.

VinciGit00 avatar VinciGit00 commented on September 14, 2024

hi please update to the new beta

from scrapegraph-ai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.