Skip to content

Commit 8d0e109

Browse files
committed
Added overwrite keyword to set_common_params`
1 parent 4dc6049 commit 8d0e109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrapegraphai/graphs/abstract_graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, prompt: str, config: dict, source: Optional[str] = None):
6262
self.set_common_params(common_params, overwrite=False)
6363

6464

65-
def set_common_params(self, params: dict):
65+
def set_common_params(self, params: dict, overwrite=False):
6666
"""
6767
Pass parameters to every node in the graph unless otherwise defined in the graph.
6868
@@ -71,7 +71,7 @@ def set_common_params(self, params: dict):
7171
"""
7272

7373
for node in self.graph.nodes:
74-
node.update_config(params)
74+
node.update_config(params, overwrite)
7575

7676
def _set_model_token(self, llm):
7777

0 commit comments

Comments
 (0)