mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(core): normalize memory unit after adding new slice before return
This commit is contained in:
@@ -52,6 +52,7 @@ public class MemoryCore implements StateSerializable {
|
||||
conversationMessages.addAll(chatMessages);
|
||||
|
||||
unit.getSlices().add(memorySlice);
|
||||
normalizeMemoryUnit(unit);
|
||||
return unit;
|
||||
} finally {
|
||||
memoryLock.unlock();
|
||||
|
||||
Reference in New Issue
Block a user