This commit is contained in:
jyong 2025-09-17 23:19:57 +08:00
parent ea38b4bcbe
commit 42d76dd126
3 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
from .app_config import DifyConfig
dify_config = DifyConfig() # pyright: ignore[reportCallIssue]
dify_config = DifyConfig() # type: ignore

View File

@ -512,11 +512,11 @@ class WorkflowVariableTruncationConfig(BaseSettings):
description="Maximum size for variable to trigger final truncation.",
)
WORKFLOW_VARIABLE_TRUNCATION_STRING_LENGTH: PositiveInt = Field(
50000,
100000,
description="maximum length for string to trigger tuncation, measure in number of characters",
)
WORKFLOW_VARIABLE_TRUNCATION_ARRAY_LENGTH: PositiveInt = Field(
100,
1000,
description="maximum length for array to trigger truncation.",
)

View File

@ -13,4 +13,4 @@ class WorkflowNodeRunFailedError(Exception):
@property
def error(self) -> str:
return self._error
return self._error