Codium-ai / pr-agent

🚀CodiumAI PR-Agent: An AI-Powered 🤖 Tool for Automated Pull Request Analysis, Feedback, Suggestions and More! 💻🔍
Apache License 2.0
6.03k stars 589 forks source link

Issue with GitHub Action and GPT Model Selection #538

Closed imcodingideas closed 11 months ago

imcodingideas commented 11 months ago

Summary

I am currently using a GitHub Action in my workflow, but I'm encountering an unexpected response. Despite having a balance in my account, the action defaults to using gpt-3.5-turbo-16k instead of gpt-4.0.

Screenshot of the Issue

(Full error log is available in the attached screenshot.)

Screenshot 2023-12-19 at 7 50 27 PM

Screenshot 2023-12-19 at 7 57 59 PM

GitHub Action Configuration

Here is the relevant part of my GitHub Action configuration:

name: PR Agent

on:
  pull_request:
  issue_comment:

permissions:
  issues: write
  pull-requests: write
  contents: write

jobs:
  pr_agent_job:
    runs-on: ubuntu-latest
    name: Run on every pull request, and respond to user comments
    steps:
      - name: PR Agent action step
        id: pragent
        uses: Codium-ai/pr-agent@main
        env:
          OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITHUB_ACTION.AUTO_REVIEW: true
          GITHUB_ACTION.AUTO_IMPROVE: true

Question

Is there a specific configuration or step required to ensure the GitHub Action utilizes gpt-4.0 instead of defaulting to gpt-3.5-turbo-16k? Do I need to use gpt-4.0 specifically?

Any guidance or suggestions would be greatly appreciated.

imcodingideas commented 11 months ago

Somehow it started working.

mrT23 commented 10 months ago

Similar Issues (pinecone)


  1. Unable to use Github Action anymore (score=0.87)

  2. Unable to get PR-Agent GitHub Action to use Azure OpenAI (score=0.86)

  3. GPT-4 prediction failure (score=0.86)

  4. Github actions error (score=0.85)

  5. Inline comments aren't working (score=0.84)

mrT23 commented 10 months ago

Similar Issues (lancedb)


  1. Unable to use Github Action anymore (score=0.73)

  2. Unable to get PR-Agent GitHub Action to use Azure OpenAI (score=0.72)

  3. GPT-4 prediction failure (score=0.72)

  4. Github actions error (score=0.69)

  5. Inline comments aren't working (score=0.69)

  6. Nothing happens? What am I missing? (score=0.67)

  7. Adding Descriptive Comments or Reviews Directly Upon PR Creation (score=0.67)

  8. Unrecognized request argument supplied: azure on GitHub Actions (score=0.66)

mrT23 commented 10 months ago

Similar Issues


  1. Unable to use Github Action anymore (score=0.73)

  2. Unable to get PR-Agent GitHub Action to use Azure OpenAI (score=0.72)

  3. GPT-4 prediction failure (score=0.72)

  4. Github actions error (score=0.69)

  5. Inline comments aren't working (score=0.69)

  6. Nothing happens? What am I missing? (score=0.67)

  7. Adding Descriptive Comments or Reviews Directly Upon PR Creation (score=0.67)

  8. Unrecognized request argument supplied: azure on GitHub Actions (score=0.66)

mrT23 commented 10 months ago

Similar Issues


  1. Unable to use Github Action anymore (score=0.73)

  2. Unable to get PR-Agent GitHub Action to use Azure OpenAI (score=0.72)

  3. GPT-4 prediction failure (score=0.72)

  4. Github actions error (score=0.69)

  5. Inline comments aren't working (score=0.69)

  6. Nothing happens? What am I missing? (score=0.67)

  7. Adding Descriptive Comments or Reviews Directly Upon PR Creation (score=0.67)

  8. Unrecognized request argument supplied: azure on GitHub Actions (score=0.66)