feat: rename llm temporary files to use prompt suffix

This commit is contained in:
Janik von Rotz committed 2026-07-27 09:51:43 +02:00
1 parent 8abd1b0058
commit 7837e90fd6
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
commit-with-llm() {
mkdir -p tmp
local prompt_file="tmp/llm_update"
local prompt_file="tmp/llm_prompt"
echo -e "\nWrite prompt to $prompt_file."
cat << EOF > "$prompt_file"
Look at the git log and the git diff below and reply with a git commit message matching the changes and style of the log.
@@ -27,7 +27,7 @@ EOF
fi
# Save the result to a file
local result_file="tmp/llm_update_result"
local result_file="tmp/llm_prompt_result"
echo "$result" > "$result_file"
echo -e "Saved response to $result_file.\n"
+2 -2
View File
@@ -32,7 +32,7 @@ $(cat "$file")
# Define prompt content
mkdir -p tmp
local prompt_file="tmp/llm_update"
local prompt_file="tmp/llm_prompt"
echo -e "\\nWrite prompt to $prompt_file."
cat << EOF > "$prompt_file"
Look at the code files below and do the following:
@@ -60,7 +60,7 @@ EOF
fi
# Save the result to a file
local result_file="tmp/llm_update_result"
local result_file="tmp/llm_prompt_result"
echo "$result" > "$result_file"
echo -e "Saved response to $result_file.\\n"