mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2026-04-25 11:18:06 +00:00
fix one layer node
This commit is contained in:
parent
75e5070679
commit
4146083264
2
graph.py
2
graph.py
@ -264,7 +264,7 @@ class Graph:
|
||||
if len(line) == 1: # In case there is only one layer
|
||||
for node_id in range(line[0][0][0], line[0][0][1] + 1):
|
||||
if node_id not in self.nodes:
|
||||
self.add_node(Node(node_id), model=self.config.get("Model"))
|
||||
self.add_node(Node(node_id, model=self.config.get("Model")))
|
||||
for i in range(len(line) - 1):
|
||||
from_node_list = line[i]
|
||||
to_node_list = line[i + 1]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user