Skip to content

Commit dedc733

Browse files
committed
fix(asyncio): replaced deepcopy with copy due to serialization problems
1 parent 627cbee commit dedc733

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/openai/search_graph_openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# ************************************************
2929

3030
search_graph = SearchGraph(
31-
prompt="List me the best escursions near Trento",
31+
prompt="List me Chioggia's famous dishes",
3232
config=graph_config
3333
)
3434

scrapegraphai/nodes/graph_iterator_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .base_node import BaseNode
1212

1313

14-
_default_batchsize = 4
14+
_default_batchsize = 2
1515

1616

1717
class GraphIteratorNode(BaseNode):
@@ -118,7 +118,7 @@ async def _async_run(graph):
118118

119119
# creates a deepcopy of the graph instance for each endpoint
120120
for url in urls:
121-
instance = copy.deepcopy(graph_instance)
121+
instance = copy.copy(graph_instance)
122122
instance.source = url
123123

124124
participants.append(instance)

0 commit comments

Comments
 (0)