feat: set default memory messages limit to infinite (#5002)
This commit is contained in:
parent
52585aea74
commit
3929d289e0
3 changed files with 15 additions and 8 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue