fix: patched another test that used dummy user_id's to instead use the default user_id

This commit is contained in:
cpacker
2024-01-15 14:07:57 -08:00
parent 5799d4ab36
commit 78534f4852

View File

@@ -1,7 +1,10 @@
import os
import uuid
from memgpt import MemGPT
from memgpt.config import MemGPTConfig
from memgpt import constants
import memgpt.functions.function_sets.base as base_functions
import os
from .utils import wipe_config
@@ -28,7 +31,9 @@ def create_test_agent():
)
global agent_obj
agent_obj = client.server._get_or_load_agent(user_id="NULL", agent_id=agent_state.id)
config = MemGPTConfig.load()
user_id = uuid.UUID(config.anon_clientid)
agent_obj = client.server._get_or_load_agent(user_id=user_id, agent_id=agent_state.id)
def test_archival():