Separate CODE_MAX_DEPTH and set it as an environment variable (#7474)

This commit is contained in:
hisir
2024-08-21 12:48:25 +08:00
committed by GitHub
parent 4e7b6aec3a
commit 6435b4eb44
4 changed files with 4 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ class DifyConfig(
CODE_MAX_NUMBER: int = 9223372036854775807
CODE_MIN_NUMBER: int = -9223372036854775808
CODE_MAX_DEPTH: int = 5
CODE_MAX_STRING_LENGTH: int = 80000
CODE_MAX_STRING_ARRAY_LENGTH: int = 30
CODE_MAX_OBJECT_ARRAY_LENGTH: int = 30