mirror of https://github.com/langgenius/dify.git
fix variable-truncator max size comments (#27129)
This commit is contained in:
parent
f0e739be43
commit
2382229c7d
|
|
@ -548,7 +548,7 @@ class UpdateConfig(BaseSettings):
|
|||
|
||||
class WorkflowVariableTruncationConfig(BaseSettings):
|
||||
WORKFLOW_VARIABLE_TRUNCATION_MAX_SIZE: PositiveInt = Field(
|
||||
# 100KB
|
||||
# 1000 KiB
|
||||
1024_000,
|
||||
description="Maximum size for variable to trigger final truncation.",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ class VariableTruncator:
|
|||
self,
|
||||
string_length_limit=5000,
|
||||
array_element_limit: int = 20,
|
||||
max_size_bytes: int = 1024_000, # 100KB
|
||||
max_size_bytes: int = 1024_000, # 1000 KiB
|
||||
):
|
||||
if string_length_limit <= 3:
|
||||
raise ValueError("string_length_limit should be greater than 3.")
|
||||
|
|
|
|||
Loading…
Reference in New Issue