Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
support .txt extension
Charles Packera9b1dcb3530e
diff --git a/memgpt/humans/humans.py b/memgpt/humans/humans.pyindex 2d3254384..534ecdbba 100644--- a/memgpt/humans/humans.py+++ b/memgpt/humans/humans.py@@ -3,7 +3,7 @@ import osDEFAULT = 'cs_phd'def get_human_text(key=DEFAULT):- filename = f'{key}.txt'+ filename = key if key.endswith('.txt') else f'{key}.txt'file_path = os.path.join(os.path.dirname(__file__), 'examples', filename)if os.path.exists(file_path):diff --git a/memgpt/personas/personas.py b/memgpt/personas/personas.pyindex 1eb743156..d86dd270a 100644--- a/memgpt/personas/personas.py+++ b/memgpt/personas/personas.py@@ -4,9 +4,9 @@ DEFAULT = 'sam'def get_persona_text(key=DEFAULT):- filename = f'{key}.txt'+ filename = key if key.endswith('.txt') else f'{key}.txt'file_path = os.path.join(os.path.dirname(__file__), 'examples', filename)-+if os.path.exists(file_path):with open(file_path, 'r') as file:return file.read().strip()