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