feat/pr-review-workflow #35

Merged
sarman merged 19 commits from feat/pr-review-workflow into master 2026-04-12 23:08:48 +00:00
Showing only changes of commit 8f73a7d017 - Show all commits

View File

@ -41,14 +41,17 @@ jobs:
--arg model "qwen3-coder-next:latest" \ --arg model "qwen3-coder-next:latest" \
--arg content "$PROMPT" \ --arg content "$PROMPT" \
'{model: $model, messages: [{role: "user", content: $content}], stream: false}') '{model: $model, messages: [{role: "user", content: $content}], stream: false}')
echo "Request body length: ${#BODY} bytes"
echo "Request body (first 200 chars): ${BODY:0:200}"
echo "Calling Ollama API..." echo "Calling Ollama API..."
HTTP_CODE=$(curl -s -o /tmp/ollama_response.json -w "%{http_code}" \ HTTP_CODE=$(curl -s -o /tmp/ollama_response.json -w "%{http_code}" \
-X POST "$OLLAMA_URL/api/chat" \ -X POST "$OLLAMA_URL/api/chat" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "$BODY") -d "$BODY")
echo "HTTP status: $HTTP_CODE" echo "HTTP status: $HTTP_CODE"
echo "Response body:" echo "Response file size: $(wc -c < /tmp/ollama_response.json) bytes"
cat /tmp/ollama_response.json echo "Response body (jq pretty-print or raw):"
jq . /tmp/ollama_response.json 2>/dev/null || cat /tmp/ollama_response.json
if [ "$HTTP_CODE" != "200" ]; then if [ "$HTTP_CODE" != "200" ]; then
echo "ERROR: Ollama returned HTTP $HTTP_CODE" echo "ERROR: Ollama returned HTTP $HTTP_CODE"
exit 1 exit 1