fix: boost default char limit to 5k for core memory blocks (#2089)

This commit is contained in:
Charles Packer
2024-11-22 11:13:56 -08:00
committed by GitHub
parent f438c057f8
commit 44df28417f
4 changed files with 9 additions and 10 deletions

View File

@@ -37,10 +37,10 @@ def test_load_memory_from_json(sample_memory: Memory):
def test_memory_limit_validation(sample_memory: Memory):
"""Test exceeding memory limit"""
with pytest.raises(ValueError):
ChatMemory(persona="x" * 3000, human="y" * 3000)
ChatMemory(persona="x " * 10000, human="y " * 10000)
with pytest.raises(ValueError):
sample_memory.get_block("persona").value = "x" * 3000
sample_memory.get_block("persona").value = "x " * 10000
def test_memory_jinja2_template_load(sample_memory: Memory):