We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a3b017 commit 8e5efbcCopy full SHA for 8e5efbc
.github/workflows/llm-review.yml
@@ -48,7 +48,6 @@ jobs:
48
exit 0
49
fi
50
51
- # Encode the diff in Base64
52
DIFF_B64=$(base64 -w 0 diff.txt)
53
54
RESPONSE=$(curl -s "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions" \
@@ -67,14 +66,7 @@ jobs:
67
66
EOF
68
)
69
70
- ERROR=$(echo "$RESPONSE" | jq -r '.[0].error.message // empty')
71
- if [ -n "$ERROR" ]; then
72
- echo "⚠️ LLM error: $ERROR"
73
- echo "LLM_RESPONSE=Erreur LLM : $ERROR" >> $GITHUB_OUTPUT
74
- exit 0
75
- fi
76
-
77
- FEEDBACK=$(echo "$RESPONSE" | jq -r '.[0].message.content' 2>/dev/null || echo "")
+ FEEDBACK=$(echo "$RESPONSE" | jq -r '.choices[0].message.content // ""')
78
echo "LLM_RESPONSE<<EOF" >> $GITHUB_OUTPUT
79
echo "$FEEDBACK" >> $GITHUB_OUTPUT
80
echo "EOF" >> $GITHUB_OUTPUT
0 commit comments