Skip to content

Commit

Permalink
Prompt adjustment because parse error sometimes caused API to repeat …
Browse files Browse the repository at this point in the history
…due to recitation of rules.
  • Loading branch information
saten-private committed Jul 13, 2024
1 parent a01ba2e commit 395351f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions babyagi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ class Pipe {
```
# Absolute Rule
If the output is anything other than "Complete", please never output anything other than a Please never output anything other than a "Example X of tasks output" format that always includes "type:" before ``` blocks. Please never output 'sudo' commands. Never include ``` within ``` blocks."""
If the output is anything other than "Complete", please never output anything other than a Please never output anything other than a "Example X of tasks output" format that always includes "type:" before ``` blocks. Please never output 'sudo' commands. Never include ``` within ``` blocks. Never repeat the content of a rule."""

log("\033[34m\033[1m" + "[[Prompt]]" + "\033[0m\033[0m" + "\n\n" + prompt +
"\n\n")
Expand Down Expand Up @@ -1468,7 +1468,7 @@ class Pipe {
```
# Absolute Rule
Please never output the 'sudo' command. Please never output anything other than a "Example X of tasks output" format that always includes "type:" before ``` blocks. Never include ``` within ``` blocks."""
Please never output the 'sudo' command. Please never output anything other than a "Example X of tasks output" format that always includes "type:" before ``` blocks. Never include ``` within ``` blocks. Never repeat the content of a rule."""

log("\033[34m\033[1m" + "[[Prompt]]" + "\033[0m\033[0m" + "\n\n" + prompt +
"\n\n")
Expand Down Expand Up @@ -1785,7 +1785,7 @@ def merge_file(base_content: str, modify_content: str) -> str:
```
# Absolute Rule
Always output only the merged code and never start the output with ```."""
Always output only the merged code and never start the output with ```. Never repeat the content of a rule."""

log("\n\n")
log("\033[34m\033[1m" + "[[Prompt]]" + "\033[0m\033[0m" + "\n\n" + prompt +
Expand Down

0 comments on commit 395351f

Please sign in to comment.