From cb476c14c16bfbbe6316fc1380b18042d7dcce10 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Sat, 24 Feb 2024 20:05:45 -0800 Subject: [PATCH] fix: Patch typo in base.py (#1050) --- memgpt/functions/function_sets/base.py | 2 +- memgpt/prompts/gpt_functions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/memgpt/functions/function_sets/base.py b/memgpt/functions/function_sets/base.py index 95b1c13a..55ab03dc 100644 --- a/memgpt/functions/function_sets/base.py +++ b/memgpt/functions/function_sets/base.py @@ -69,7 +69,7 @@ def core_memory_append(self, name: str, content: str) -> Optional[str]: def core_memory_replace(self, name: str, old_content: str, new_content: str) -> Optional[str]: """ - Replace to the contents of core memory. To delete memories, use an empty string for new_content. + Replace the contents of core memory. To delete memories, use an empty string for new_content. Args: name (str): Section of the memory to be edited (persona or human). diff --git a/memgpt/prompts/gpt_functions.py b/memgpt/prompts/gpt_functions.py index e6d853ec..4446a6c1 100644 --- a/memgpt/prompts/gpt_functions.py +++ b/memgpt/prompts/gpt_functions.py @@ -75,7 +75,7 @@ FUNCTIONS_CHAINING = { }, "core_memory_replace": { "name": "core_memory_replace", - "description": "Replace to the contents of core memory. To delete memories, use an empty string for new_content.", + "description": "Replace the contents of core memory. To delete memories, use an empty string for new_content.", "parameters": { "type": "object", "properties": {