feat: set default memory messages limit to infinite (#5002)

This commit is contained in:
takatost
2024-06-06 17:39:44 +08:00
committed by GitHub
parent 52585aea74
commit 3929d289e0
3 changed files with 15 additions and 8 deletions

View File

@@ -77,7 +77,7 @@ class PromptTransform:
max_token_limit=max_token_limit,
message_limit=memory_config.window.size
if (memory_config.window.enabled
and memory_config.window.size is not None
and memory_config.window.size > 0)
else 10
and memory_config.window.size is not None
and memory_config.window.size > 0)
else None
)