Skip to content

Commit a424bd1

Browse files
committed
git commit -m Initial commit
1 parent 1227a01 commit a424bd1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

git-commit-push-script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ if [ -n "$SQUISH_BIN" ]; then
243243

244244
# Build JSON payload in pure bash — _json_str escapes all special chars
245245
# /no_think disables Qwen3 chain-of-thought so the model replies directly.
246-
_sys="/no_think Write a single-line git commit message. Imperative mood, 50-100 characters, no punctuation at the end. Output the message text only — no quotes, no explanation, no newlines. Do not include git diff syntax like +/-. Focus on the code changes."
246+
_sys="/no_think Write a single-line git commit message. Imperative mood, 50-75 characters, no punctuation at the end. Output the message text only — no quotes, no explanation, no newlines, no git diff syntax."
247247
_usr="/no_think Files: ${changed_names}\nStat: ${stat_summary}\nDiff:\n${stripped_diff}"
248-
PAYLOAD='{"model":"squish","messages":[{"role":"system","content":"'"$(_json_str "$_sys")"'"},{"role":"user","content":"'"$(_json_str "$_usr")"'"}],"max_tokens":100,"temperature":0.2,"stream":false}'
248+
PAYLOAD='{"model":"squish","messages":[{"role":"system","content":"'"$(_json_str "$_sys")"'"},{"role":"user","content":"'"$(_json_str "$_usr")"'"}],"max_tokens":75,"temperature":0.2,"stream":false}'
249249

250250
# Run squish — curl in background, spinner inline in foreground (no subprocess)
251251
print_step "Asking AI for commit message (Squish local LLM)..."

0 commit comments

Comments
 (0)