Skip to content

Commit 809d31c

Browse files
Add prompt to avoid editing legal sections
1 parent a720c44 commit 809d31c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/review_file/review_file.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ def run_llm_review(
9292
f"3. Focus specifically on documentation elements, such as the full content of README files, "
9393
f"code comments, and markdown sections in Python notebooks.\n"
9494
f"4. **IMPORTANT:** Do not modify any code logic or functionality, only improve the documentation elements.\n"
95-
f"5. Edit the text directly to enhance readability and technical accuracy.\n"
96-
f"6. Preserve the original meaning and intent of the content.\n"
97-
f"7. Ensure consistency in terminology, tone, and technical details across README files, code comments, and markdown sections.\n\n"
95+
f"5. **IMPORTANT:** Do not edit, paraphrase, or reword any legal sections. "
96+
f"All legal obligations and rights must remain exactly as written.\n"
97+
f"6. Edit the text directly to enhance readability and technical accuracy.\n"
98+
f"7. Preserve the original meaning and intent of the content.\n"
99+
f"8. Ensure consistency in terminology, tone, and technical details across README files, code comments, and markdown sections.\n\n"
98100
f"{user_instructions_prompt}"
99101
f"Output:\n"
100102
f"Return the **entire revised content** as a plain text, without additional commentary or formatting.\n"

0 commit comments

Comments
 (0)