Skip to content

Commit

Permalink
handle tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Oct 23, 2024
1 parent e90740e commit bb56415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agixt/XT.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "</answer>" not in response:
if auto_continue and "</answer>" not in response and "<answer>" in response:
responses = [response]
try:
continue_response = await self.inference(
Expand Down

0 comments on commit bb56415

Please sign in to comment.