mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 22:44:21 +01:00
Memory fixes.
This commit is contained in:
@@ -44,6 +44,8 @@ class LocalCache(MemoryProviderSingleton):
|
||||
|
||||
Returns: None
|
||||
"""
|
||||
if 'Command Error:' in text:
|
||||
return ""
|
||||
self.data.texts.append(text)
|
||||
|
||||
embedding = get_ada_embedding(text)
|
||||
@@ -64,6 +66,7 @@ class LocalCache(MemoryProviderSingleton):
|
||||
option=SAVE_OPTIONS
|
||||
)
|
||||
f.write(out)
|
||||
return text
|
||||
|
||||
def clear(self) -> str:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user