mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 11:06:46 +08:00
fix: code template
This commit is contained in:
parent
36180b1001
commit
b99eadecf6
@ -15,13 +15,13 @@ MAX_STRING_LENGTH = 1000
|
|||||||
MAX_STRING_ARRAY_LENGTH = 30
|
MAX_STRING_ARRAY_LENGTH = 30
|
||||||
MAX_NUMBER_ARRAY_LENGTH = 1000
|
MAX_NUMBER_ARRAY_LENGTH = 1000
|
||||||
|
|
||||||
JAVASCRIPT_DEFAULT_CODE = """function main({args1, args2}) {
|
JAVASCRIPT_DEFAULT_CODE = """function main({arg1, arg2}) {
|
||||||
return {
|
return {
|
||||||
result: args1 + args2
|
result: args1 + args2
|
||||||
}
|
}
|
||||||
}"""
|
}"""
|
||||||
|
|
||||||
PYTHON_DEFAULT_CODE = """def main(args1: int, args2: int) -> dict:
|
PYTHON_DEFAULT_CODE = """def main(arg1: int, arg2: int) -> dict:
|
||||||
return {
|
return {
|
||||||
"result": args1 + args2,
|
"result": args1 + args2,
|
||||||
}"""
|
}"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user