Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: set default, all 0 anon UUID (#1071)

tombedor8cbd1c849c7f
diff --git a/memgpt/config.py b/memgpt/config.py
index 9886d90f7..e0987f9f5 100644
--- a/memgpt/config.py
+++ b/memgpt/config.py
@@ -5,17 +5,12 @@ import os
import uuid
from dataclasses import dataclass, field
import configparser
-import typer
-import questionary
-from typing import Optional
import memgpt
import memgpt.utils as utils
-from memgpt.utils import printd, get_schema_diff
-from memgpt.functions.functions import load_all_function_sets
-from memgpt.constants import MEMGPT_DIR, LLM_MAX_TOKENS, DEFAULT_HUMAN, DEFAULT_PERSONA, DEFAULT_PRESET
-from memgpt.data_types import AgentState, User, LLMConfig, EmbeddingConfig
+from memgpt.constants import MEMGPT_DIR, DEFAULT_HUMAN, DEFAULT_PERSONA, DEFAULT_PRESET
+from memgpt.data_types import AgentState, LLMConfig, EmbeddingConfig
# helper functions for writing to configs
@@ -39,7 +34,7 @@ def set_field(config, section, field, value):
@dataclass
class MemGPTConfig:
config_path: str = os.getenv("MEMGPT_CONFIG_PATH") if os.getenv("MEMGPT_CONFIG_PATH") else os.path.join(MEMGPT_DIR, "config")
- anon_clientid: str = None
+ anon_clientid: str = str(uuid.UUID(int=0))
# preset
preset: str = DEFAULT_PRESET