mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 11:56:53 +08:00
feat: code (#3557)
This commit is contained in:
@@ -112,7 +112,7 @@ class CodeNode(BaseNode):
|
||||
variables[variable] = value
|
||||
# Run code
|
||||
try:
|
||||
result = CodeExecutor.execute_code(
|
||||
result = CodeExecutor.execute_workflow_code_template(
|
||||
language=code_language,
|
||||
code=code,
|
||||
inputs=variables
|
||||
|
||||
@@ -52,7 +52,7 @@ class TemplateTransformNode(BaseNode):
|
||||
variables[variable] = value
|
||||
# Run code
|
||||
try:
|
||||
result = CodeExecutor.execute_code(
|
||||
result = CodeExecutor.execute_workflow_code_template(
|
||||
language='jinja2',
|
||||
code=node_data.template,
|
||||
inputs=variables
|
||||
|
||||
Reference in New Issue
Block a user