From 2d9b9294d08aad063d8b873f1f201ef4c8b39081 Mon Sep 17 00:00:00 2001 From: merwanehamadi Date: Sat, 13 May 2023 18:18:31 -0700 Subject: [PATCH] Test New CI Pipeline (#4170) * introduce dummy prompt change * introduce dummy prompt change * empty commit * empty commit * empty commit * push to origin repo * add s to quote --- .github/workflows/ci.yml | 4 ++-- autogpt/llm/llm_utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 490837fd..ecd6bdb5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,5 +97,5 @@ jobs: git config user.name "GitHub Actions" git commit -m "Add new cassettes" git checkout -b cassette-diff-${{ github.event.pull_request.number }} - git push -f origin cassette-diff-${{ github.event.pull_request.number }} - echo "COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV + git remote add target https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.event.pull_request.base.repo.full_name }} + git push -f target cassette-diff-${{ github.event.pull_request.number }} diff --git a/autogpt/llm/llm_utils.py b/autogpt/llm/llm_utils.py index 58b19735..a77bccbc 100644 --- a/autogpt/llm/llm_utils.py +++ b/autogpt/llm/llm_utils.py @@ -181,7 +181,7 @@ def create_chat_completion( ) warned_user = True except (APIError, Timeout) as e: - if e.http_status != 502 : + if e.http_status != 502: raise if attempt == num_retries - 1: raise