Refactor: Simplify memory key generation and update retention settings

This commit is contained in:
jxxghp
2025-12-13 15:40:20 +08:00
parent ba3ce4f1b5
commit 0716c65269
2 changed files with 19 additions and 9 deletions
+3 -3
View File
@@ -430,9 +430,9 @@ class ConfigModel(BaseModel):
# 是否启用详细日志
LLM_VERBOSE: bool = False
# 最大记忆消息数量
LLM_MAX_MEMORY_MESSAGES: int = 50
# 记忆保留天数
LLM_MEMORY_RETENTION_DAYS: int = 30
LLM_MAX_MEMORY_MESSAGES: int = 30
# 内存记忆保留天数
LLM_MEMORY_RETENTION_DAYS: int = 1
# Redis记忆保留天数(如果使用Redis)
LLM_REDIS_MEMORY_RETENTION_DAYS: int = 7