Skip to content

Commit

Permalink
🤖 Update loop
Browse files Browse the repository at this point in the history
  • Loading branch information
asim-shrestha committed Apr 12, 2023
1 parent e1e8020 commit c7f1dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AutonomousAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class AutonomousAgent {
}

this.numLoops += 1;
const maxLoops = this.customApiKey === "" ? 5 : 50;
const maxLoops = this.customApiKey === "" ? 5 : 25;
if (this.numLoops > maxLoops) {
this.sendLoopMessage();
this.shutdown();
Expand Down Expand Up @@ -162,7 +162,7 @@ class AutonomousAgent {
type: "system",
value:
this.customApiKey !== ""
? `This agent has been running for too long. To save your wallet (And on our infrastructure costs), this agent is shutting down. In the future, the number of iterations will be configurable.`
? `This agent has been running for too long (25 Loops). To save your wallet, and our infrastructure costs, this agent is shutting down. In the future, the number of iterations will be configurable.`
: "We're sorry, because this is a demo, we cannot have our agents running for too long. Note, if you desire longer runs, please provide your own API key in Settings. Shutting down.",
});
}
Expand Down

0 comments on commit c7f1dac

Please sign in to comment.