Skip to content

Commit

Permalink
cleaning up the initial prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
TransformerOptimus committed Jul 14, 2023
1 parent c5646a9 commit b769e90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion superagi/helper/feed_parser.py
Expand Up @@ -41,7 +41,12 @@ def parse_feed(feed):
"time_difference": feed.time_difference}
except Exception:
return feed

if feed.role == "system":
return feed
final_output = feed.feed
if "json-schema.org" in feed.feed:
final_output = feed.feed.split("TOOLS")[0]
return {"role": "system", "feed": final_output, "updated_at": feed.updated_at,
"time_difference": feed.time_difference}

return feed

0 comments on commit b769e90

Please sign in to comment.