Skip to content

Commit

Permalink
Merge pull request #215 from potpie-ai/stream_agent
Browse files Browse the repository at this point in the history
Update EOL check in response
  • Loading branch information
dhirenmathur authored Dec 20, 2024
2 parents 275f0d0 + 6e147a7 commit 9f68a2b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/modules/intelligence/agents/agents/code_gen_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ async def kickoff():
if not line:
break
if final_answer_streaming:
if line.endswith("\\x1b[00m\\n"):
if line.endswith("\x1b[00m\n"):
yield line[:-6]
else:
yield line
Expand Down
2 changes: 1 addition & 1 deletion app/modules/intelligence/agents/agents/debug_rag_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ async def kickoff():
if not line:
break
if final_answer_streaming:
if line.endswith("\\x1b[00m\\n"):
if line.endswith("\x1b[00m\n"):
yield line[:-6]
else:
yield line
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async def kickoff():
if not line:
break
if final_answer_streaming:
if line.endswith("\\x1b[00m\\n"):
if line.endswith("\x1b[00m\n"):
yield line[:-6]
else:
yield line
Expand Down
2 changes: 1 addition & 1 deletion app/modules/intelligence/agents/agents/rag_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ async def kickoff():
break
else:
if final_answer_streaming:
if line.endswith("\\x1b[00m\\n"):
if line.endswith("\x1b[00m\n"):
yield line[:-6]
else:
yield line
Expand Down

0 comments on commit 9f68a2b

Please sign in to comment.