From 4bfd1ce645d58aaf13e777d763b393a21dfbe920 Mon Sep 17 00:00:00 2001 From: thias15 Date: Sun, 2 Jun 2024 01:13:38 -0700 Subject: [PATCH] update gpt_review.yml --- .github/workflows/gpt_review.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gpt_review.yml b/.github/workflows/gpt_review.yml index bd8d563dc..7b7438b68 100644 --- a/.github/workflows/gpt_review.yml +++ b/.github/workflows/gpt_review.yml @@ -17,8 +17,14 @@ jobs: fetch-depth: 0 - name: Run GPT Code Review - uses: mattzcarey/code-review-gpt@v0.1.8 + uses: cirolini/genai-code-review@v2 with: - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - MODEL: 'gpt-4o' - GITHUB_TOKEN: ${{ github.token }} + openai_api_key: ${{ secrets.OPENAI_API_KEY }} + github_token: ${{ secrets.GITHUB_TOKEN }} + github_pr_id: ${{ github.event.number }} + openai_model: "gpt-4o" # optional + openai_temperature: 0.5 # optional + openai_max_tokens: 2048 # optional + mode: files # files or patch + language: en # optional, default is 'en' + custom_prompt: "" # optional