mirror of https://github.com/langgenius/dify.git
fix mypy
This commit is contained in:
parent
ea38b4bcbe
commit
42d76dd126
|
|
@ -1,3 +1,3 @@
|
|||
from .app_config import DifyConfig
|
||||
|
||||
dify_config = DifyConfig() # pyright: ignore[reportCallIssue]
|
||||
dify_config = DifyConfig() # type: ignore
|
||||
|
|
|
|||
|
|
@ -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.",
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ class WorkflowNodeRunFailedError(Exception):
|
|||
|
||||
@property
|
||||
def error(self) -> str:
|
||||
return self._error
|
||||
return self._error
|
||||
|
|
|
|||
Loading…
Reference in New Issue