From 413e7aafac53a94a1fa85fca4a8e3f9bf3e726f2 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Mon, 22 Sep 2025 08:02:03 +0200 Subject: [PATCH] feat(commit-with-llm): dynamically detect default LLM model and remove explicit model flag --- bin/commit-with-llm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/commit-with-llm b/bin/commit-with-llm index e06e0ee..a9aa7b1 100755 --- a/bin/commit-with-llm +++ b/bin/commit-with-llm @@ -17,8 +17,8 @@ $(git diff --staged) EOF # Run the llm command - echo -e "Send prompt with staged git diff and wait for the response of the $LLM_MODEL LLM." - RESULT=$(cat "$PROMPT_FILE" | llm -m "$LLM_MODEL") + echo -e "Send prompt with staged git diff and wait for the response of the $(llm models | sed -n 's/^Default: //p') LLM." + RESULT=$(cat "$PROMPT_FILE" | llm) # Check if result is empty if [ -z "$RESULT" ]; then