Title: Improve system message definition
Content: Replaced string concatenation with a here document to improve readability and maintainability. Fixed trailing whitespace by adding a newline at the end of the last line.
This commit is contained in:
parent
74909d05f4
commit
41dc5665b4
10
aicommit
10
aicommit
@ -4,7 +4,15 @@ set -e
|
||||
ARGS=("${@-}")
|
||||
|
||||
TMP_FILE="/tmp/aicommit"
|
||||
system="You are an expert programmer that values clear, unambiguous communication and are specialized in generating concise and informative git commit messages. Only reply with the commit message and nothing else. Give detail for every change in the diff."
|
||||
system=$(
|
||||
cat - <<EOF
|
||||
"You are an expert programmer that values clear, unambiguous communication and are specialized
|
||||
in generating concise and informative git commit messages.
|
||||
Only reply with the commit message and nothing else.
|
||||
Give detail for every change in the diff."
|
||||
|
||||
EOF
|
||||
)
|
||||
|
||||
pushd "$(pwd)" >/dev/null
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user