From b57956c302b3f84814230d85b5de0be42eb2ac9e Mon Sep 17 00:00:00 2001 From: hadar-co Date: Mon, 11 Nov 2024 12:22:34 +0200 Subject: [PATCH] Update createGuide.yml --- .github/workflows/createGuide.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/createGuide.yml b/.github/workflows/createGuide.yml index 4e066b3..5b5af1f 100644 --- a/.github/workflows/createGuide.yml +++ b/.github/workflows/createGuide.yml @@ -69,7 +69,7 @@ jobs: - name: Wait for run completion run: | STATUS="running" - while [[ "$STATUS" == "running" || "$STATUS" == "queued" ]]; do + while [[ "$STATUS" == "running" || "$STATUS" == "queued" || "$STATUS" == "in_progress"]]; do sleep 5 RUN_STATUS_RESPONSE=$(curl -s https://api.openai.com/v1/threads/${{ env.THREAD_ID }}/runs/${{ env.RUN_ID }} \ -H "Authorization: Bearer $OPENAI_API_KEY" \