mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 18:36:22 +02:00
Merge branch 'feat-memory-opt' into 'mgx_ops'
make the longterm-memory path configurable See merge request pub/MetaGPT!388
This commit is contained in:
commit
f8e4e3a320
4 changed files with 39 additions and 30 deletions
|
|
@ -181,6 +181,7 @@ class RoleZero(Role):
|
|||
if self.config.role_zero.enable_longterm_memory:
|
||||
self.rc.memory = RoleZeroLongTermMemory(
|
||||
**self.rc.memory.model_dump(),
|
||||
persist_path=self.config.role_zero.longterm_memory_persist_path,
|
||||
collection_name=self.name.replace(" ", ""),
|
||||
memory_k=self.memory_k,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue