Skip to content

Commit

Permalink
set to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 26, 2024
1 parent 986dc86 commit abc0bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agixt/Agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ async def inference(self, prompt: str, tokens: int = 0, images: list = []):
answer = await self.PROVIDER.inference(
prompt=prompt, tokens=tokens, images=images
)
answer = answer.replace("\_", "_")
answer = str(answer).replace("\_", "_")
if answer.endswith("\n\n"):
answer = answer[:-2]
return answer
Expand All @@ -355,7 +355,7 @@ async def vision_inference(self, prompt: str, tokens: int = 0, images: list = []
answer = await self.VISION_PROVIDER.inference(
prompt=prompt, tokens=tokens, images=images
)
answer = answer.replace("\_", "_")
answer = str(answer).replace("\_", "_")
if answer.endswith("\n\n"):
answer = answer[:-2]
return answer
Expand Down

0 comments on commit abc0bd0

Please sign in to comment.