feat(commit-with-llm): dynamically detect default LLM model and remove explicit model flag

This commit is contained in:
Janik von Rotz committed 2025-09-22 08:02:03 +02:00
1 parent b6beabceca
commit 413e7aafac
1 file changed
+2 -2
+2 -2
View File
@@ -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