feat(scripts): modify gen_commit.py to enhance commit message generation

This commit is contained in:
2025-05-13 19:11:39 +07:00
parent 1e3480e658
commit 06a27404f9
+2 -1
View File
@@ -40,7 +40,8 @@ def gen_commit(project_path):
agent = OpenInterpreter()
agent.auto_run = True
with open(
f"{project_path}/scripts/interpreter/resources/commit_convention.txt", "r"
os.path.join(os.path.dirname(__file__), "resources/commit_convention.txt"),
"r",
) as f:
file_content = f.read()
agent.system_message = f"""