Memory fixes.

This commit is contained in:
BillSchumacher
2023-04-08 23:33:18 -05:00
parent 9e139fb314
commit a861dec676
2 changed files with 6 additions and 1 deletions

View File

@@ -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:
"""