fix(workflow): List operation node, exception handling for variables after importing the dify file

This commit is contained in:
Timebomb2018
2026-04-08 15:07:57 +08:00
parent d76bb36b9f
commit 931b800bb6

View File

@@ -131,7 +131,7 @@ class DifyConverter(BaseConverter):
selector = var_selector.split('.')
if len(selector) not in [2, 3] and var_selector != "context":
raise Exception(f"invalid variable selector: {var_selector}")
if len(selector) == 3:
if len(selector) == 3 and selector[0] in ("conversation", "sys"):
selector = selector[1:]
if selector[0] == "conversation":
selector[0] = "conv"