-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What to do on timeout? #831
Comments
As someone who's at the File Path
Code ChangesLook for the section where the self.verbose = node_config.get("verbose", False)
self.force = node_config.get("force", False)
self.script_creator = node_config.get("script_creator", False)
self.is_md_scraper = node_config.get("is_md_scraper", False)
self.additional_info = node_config.get("additional_info")
self.timeout = 500 # Adjust timeout value here |
Thanks @zonay , you are awesome! Given your answer, I just added: smart_scraper_graph = SmartScraperGraph(
prompt="Give me the url of all the modules including #",
source="https://scrapegraph-ai.readthedocs.io/en/latest/modules/modules.html",
config=graph_config
)
smart_scraper_graph.graph.nodes[2].timeout = 300 And it works nicely. |
@silgon It worked |
As for information. It seems it was solved by @VinciGit00 in 1.33.1 (as seen in 32ef554). Well, it seems so, however, in my case I'm not able to install that version. I get
In any case, I included the information because it seems useful =). |
The following is a script from the readme with two lines changed,
prompt
andsource
in the parameters' list ofSmartScraperGraph
. I get a timeout and in the documentation, I don't see how to configure the parameterResult
I tried to add timetout in the llm code without much success as follows:
graph_config = { "llm": { "api_key": "YOUR_OPENAI_APIKEY", "model": "openai/gpt-4o-mini", + "timeout": "300", }, "verbose": True, "headless": False, }
The text was updated successfully, but these errors were encountered: