diff --git a/agixt/XT.py b/agixt/XT.py index aa63fe6678fa..f60bf40299ce 100644 --- a/agixt/XT.py +++ b/agixt/XT.py @@ -1800,22 +1800,6 @@ async def chat_completions(self, prompt: ChatCompletions): thoughts_and_reflections += after_thoughts except: pass - # Strip out any or tags - if "" in thoughts_and_reflections: - thoughts_and_reflections = re.sub( - r"(.*?)", "", thoughts_and_reflections - ) - if "" in thoughts_and_reflections: - thoughts_and_reflections = re.sub( - r"(.*?)", "", thoughts_and_reflections - ) - if len(thoughts_and_reflections) > 10: - timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S") - await self.file_reader.write_text_to_memory( - user_input=new_prompt, - text=f"{self.agent_name}'s previous thoughts and reflections from {timestamp}:\n{thoughts_and_reflections}", - external_source=f"{self.agent_name}", - ) answer = response.split("")[-1] answer = answer.split("")[0] response = answer