Skip to content

Commit

Permalink
DEVEX-43: Integrate Azure OpenAI
Browse files Browse the repository at this point in the history
  • Loading branch information
unalpolat committed Nov 22, 2023
1 parent c4290da commit 5e258f5
Show file tree
Hide file tree
Showing 10 changed files with 14,885 additions and 11,493 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Code Review
uses: freeedcom/ai-codereviewer@main
uses: migroscomtr/ai-codereviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AZURE_BASE_URL: ${{ secrets.AZURE_BASE_URL }}
AZURE_API_KEY: ${{ secrets.AZURE_API_KEY }}
AZURE_API_VERSION: ${{ secrets.AZURE_API_VERSION }}
AZURE_DEPLOYMENT_NAME: ${{ secrets.AZURE_DEPLOYMENT_NAME }}
exclude: "yarn.lock,dist/**"
19 changes: 12 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@ inputs:
GITHUB_TOKEN:
description: "GitHub token to interact with the repository."
required: true
OPENAI_API_KEY:
description: "OpenAI API key for GPT."
AZURE_BASE_URL:
description: "Azure OpenAI base url."
required: true
AZURE_API_KEY:
description: "Azure OpenAI API key."
required: true
AZURE_API_VERSION:
description: "Azure OpenAI API version."
required: true
AZURE_DEPLOYMENT_NAME:
description: "Azure OpenAI deployment name."
required: true
OPENAI_API_MODEL:
description: "OpenAI API model."
required: false
default: "gpt-4"
exclude:
description: "Glob patterns to exclude files from the diff analysis"
description: "Glob patterns to exclude files from the diff analysis."
required: false
default: ""
runs:
Expand Down
Loading

0 comments on commit 5e258f5

Please sign in to comment.