#!/bin/bash LOCAL_LLM_API=${LOCAL_LLM_API:-http://host.docker.internal:1248/v1} DIFF=$(jj diff) PROMPT='Analyse ce diff et réponds UNIQUEMENT avec un objet JSON valide contenant "title" (string) et "message" (string) pour le message de commit. Pas de texte avant ou après le JSON.' CONTENT="${PROMPT} ${DIFF}" REQUEST=$(jq -n --arg content "$CONTENT" '{"model": "qwen3-coder", "messages": [{"role": "user", "content": $content}]}') curl -s -X POST \ -H "Content-Type: application/json" \ -d "$REQUEST" \ "$LOCAL_LLM_API/chat/completions" | jq -r '.choices[0].message.content' | jq -r '.title + "\n\n" + .message'