From bb5641538cd01c8f0ce4c2af1d7e01d297e764e2 Mon Sep 17 00:00:00 2001 From: Josh XT Date: Wed, 23 Oct 2024 11:17:21 -0400 Subject: [PATCH] handle tags --- agixt/XT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agixt/XT.py b/agixt/XT.py index d04fc90459b0..b0017aab5ec7 100644 --- a/agixt/XT.py +++ b/agixt/XT.py @@ -1743,7 +1743,7 @@ async def chat_completions(self, prompt: ChatCompletions): response = response[len(f"{self.agent_name}:") :] if response.startswith(f"{self.agent_name} :"): response = response[len(f"{self.agent_name} :") :] - if auto_continue and "" not in response: + if auto_continue and "" not in response and "" in response: responses = [response] try: continue_response = await self.inference(