From 04b507d74960e74d4dfb054a512c3100e69b4023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 13 Nov 2025 19:59:36 +0800 Subject: [PATCH] Add debug output for OpenRouter request body Prints the OpenRouter API request body in the workflow using jq for easier debugging and inspection of outgoing requests. --- .github/workflows/auto-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index ed7dc43f..9c8d4671 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -234,6 +234,9 @@ jobs: --arg user "$USER_CONTENT" \ '{model: env.OPENROUTER_MODEL, messages:[{role:"system", content:$system},{role:"user", content:$user}], temperature:0.2, max_tokens:800}') + echo "=== OpenRouter request body ===" + echo "$BODY" | jq . + # 调用 OpenRouter RESPONSE=$(curl -s -X POST "$OPENROUTER_API_URL" \ -H "Authorization: Bearer $OPENROUTER_API_KEY" \