Skip to content

Commit c243106

Browse files
committed
fix: timeout
1 parent 1dee185 commit c243106

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scrapegraphai/nodes/generate_answer_node.py

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def __init__(
5252
super().__init__(node_name, "node", input, output, 2, node_config)
5353
self.llm_model = node_config["llm_model"]
5454

55+
if hasattr(self.llm_model, 'request_timeout'):
56+
self.llm_model.request_timeout = node_config.get("timeout", 30)
57+
5558
if isinstance(node_config["llm_model"], ChatOllama):
5659
self.llm_model.format = "json"
5760

0 commit comments

Comments
 (0)