Create an abstract MemoryProviderSingleton class. Pass config instead of instantiating a new one where used.

This commit is contained in:
BillSchumacher
2023-04-06 22:25:17 -05:00
parent 3f106963a8
commit 6819799ebe
7 changed files with 48 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
import browse
import json
from memory import PineconeMemory
from memory.pinecone import PineconeMemory
import datetime
import agent_manager as agents
import speak
@@ -52,7 +52,7 @@ def get_command(response):
def execute_command(command_name, arguments):
memory = PineconeMemory()
memory = PineconeMemory(cfg=cfg)
try:
if command_name == "google":