Comments (4)
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.
Hi, can you share the code and the error
from scrapegraph-ai.
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.
hi please update to the new beta
from scrapegraph-ai.
Related Issues (20)
- i am getting the below while running for ollama model HOT 7
- Token count implementation in ParseNode splits text on spaces which is not correct HOT 1
- When I use examples/deepseek/smart_scraper_deepseek.py ,I have a error. HOT 4
- v1.17.0b5: No module named 'PIL' HOT 4
- Support for OpenAI Assistants API HOT 2
- Provider bedrock is not supported when trying to use bedrock examples listed in repo. HOT 6
- Error Instancing bedrock model from example code HOT 2
- ValueError: Error raised by bedrock service: 'str' object has no attribute 'invoke_model' HOT 6
- It can´t scrape URLs from the source HOT 8
- Executing RAG Node HOT 2
- Not getting extraction results after upgrading from 1.6.1 to 1.18.1 HOT 1
- SmartScraperGraph with Gemini: Provider google is not supported in SmartScraperGraph HOT 2
- Implement tokenization for Ollama models in refactoring-tokenization branch HOT 6
- SmartScraperGraph Initialization Error HOT 3
- [Feature Request] Add a hook to customize "wait_for_load_state" behavior HOT 1
- return number of input and output tokens with the model HOT 2
- Can you collect user usage data from within the library and write it to readme HOT 4
- Cerebras and SambaNova
- Bedrock model copy recursion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrapegraph-ai.