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