From e548c13f8cf9a77f3f32d0cc1cc7d26537637552 Mon Sep 17 00:00:00 2001 From: Zack3D Date: Wed, 24 Sep 2025 00:35:03 -0700 Subject: [PATCH] ci(workflows): fix jq selector for AI release notes Update response path from .choices[0].text to .output[1].content[0].text to match API response schema and restore successful notes generation --- .gitea/workflows/multi-platform.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/multi-platform.yml b/.gitea/workflows/multi-platform.yml index c1f316d..799dd8e 100644 --- a/.gitea/workflows/multi-platform.yml +++ b/.gitea/workflows/multi-platform.yml @@ -112,8 +112,8 @@ jobs: }") # Check if the API call was successful and extract the response - if echo "$RESPONSE" | jq -e '.choices[0].text' > /dev/null 2>&1; then - echo "$RESPONSE" | jq -r '.choices[0].text' > release_notes.md + if echo "$RESPONSE" | jq -e '.output[1].content[0].text' > /dev/null 2>&1; then + echo "$RESPONSE" | jq -r '.output[1].content[0].text' > release_notes.md echo "Generated AI release notes successfully" else echo "AI generation failed, falling back to simple notes"