Skip to content

Commit

Permalink
chore: Remove legacy code and instances of anon_clientid (#1942)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattzh72 authored Oct 25, 2024
1 parent 4f5a0b3 commit 38abf38
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 287 deletions.
6 changes: 0 additions & 6 deletions letta/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from letta.schemas.agent import AgentState
from letta.schemas.embedding_config import EmbeddingConfig
from letta.schemas.llm_config import LLMConfig
from letta.services.user_manager import UserManager

logger = get_logger(__name__)

Expand All @@ -45,7 +44,6 @@ def set_field(config, section, field, value):
@dataclass
class LettaConfig:
config_path: str = os.getenv("MEMGPT_CONFIG_PATH") or os.path.join(LETTA_DIR, "config")
anon_clientid: str = UserManager.DEFAULT_USER_ID

# preset
preset: str = DEFAULT_PRESET # TODO: rename to system prompt
Expand Down Expand Up @@ -182,7 +180,6 @@ def load(cls, llm_config: Optional[LLMConfig] = None, embedding_config: Optional
"metadata_storage_path": get_field(config, "metadata_storage", "path"),
"metadata_storage_uri": get_field(config, "metadata_storage", "uri"),
# Misc
"anon_clientid": get_field(config, "client", "anon_clientid"),
"config_path": config_path,
"letta_version": get_field(config, "version", "letta_version"),
}
Expand Down Expand Up @@ -278,9 +275,6 @@ def save(self):
# set version
set_field(config, "version", "letta_version", letta.__version__)

# client
set_field(config, "client", "anon_clientid", self.anon_clientid)

# always make sure all directories are present
self.create_config_dir()

Expand Down
1 change: 0 additions & 1 deletion paper_experiments/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def get_experiment_config(postgres_uri, endpoint_type="openai", model="gpt-4"):
config.archival_storage_uri = postgres_uri

config = LettaConfig(
anon_clientid=config.anon_clientid,
archival_storage_type="postgres",
archival_storage_uri=postgres_uri,
recall_storage_type="postgres",
Expand Down
234 changes: 0 additions & 234 deletions tests/test_load_archival.py

This file was deleted.

46 changes: 0 additions & 46 deletions tests/test_openai_assistant_api.py

This file was deleted.

0 comments on commit 38abf38

Please sign in to comment.