mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
fix: code default output
This commit is contained in:
parent
ede65eca4d
commit
1cfeb989f7
@ -53,12 +53,12 @@ class CodeNode(BaseNode):
|
|||||||
],
|
],
|
||||||
"code_language": "javascript",
|
"code_language": "javascript",
|
||||||
"code": JAVASCRIPT_DEFAULT_CODE,
|
"code": JAVASCRIPT_DEFAULT_CODE,
|
||||||
"outputs": [
|
"outputs": {
|
||||||
{
|
"result": {
|
||||||
"variable": "result",
|
"type": "number",
|
||||||
"variable_type": "number"
|
"children": None
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,12 +77,12 @@ class CodeNode(BaseNode):
|
|||||||
],
|
],
|
||||||
"code_language": "python3",
|
"code_language": "python3",
|
||||||
"code": PYTHON_DEFAULT_CODE,
|
"code": PYTHON_DEFAULT_CODE,
|
||||||
"outputs": [
|
"outputs": {
|
||||||
{
|
"result": {
|
||||||
"variable": "result",
|
"type": "number",
|
||||||
"variable_type": "number"
|
"children": None
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user