Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove legacy code and instances of anon_clientid #1942

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading