mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
feat: jinja2
This commit is contained in:
@ -52,7 +52,7 @@ class TemplateTransformNode(BaseNode):
|
||||
# Run code
|
||||
try:
|
||||
result = CodeExecutor.execute_code(
|
||||
language='jina2',
|
||||
language='jinja2',
|
||||
code=node_data.template,
|
||||
inputs=variables
|
||||
)
|
||||
@ -66,7 +66,9 @@ class TemplateTransformNode(BaseNode):
|
||||
return NodeRunResult(
|
||||
status=WorkflowNodeExecutionStatus.SUCCEEDED,
|
||||
inputs=variables,
|
||||
outputs=result['result']
|
||||
outputs={
|
||||
'output': result['result']
|
||||
}
|
||||
)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user