fix variable-truncator max size comments (#27129)

This commit is contained in:
hj24 2025-10-20 13:52:40 +08:00 committed by GitHub
parent f0e739be43
commit 2382229c7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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.",
)

View File

@ -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.")