feat: rename llm temporary files to use prompt suffix
This commit is contained in:
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -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
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user