Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
bc62780
Forced JSON mode on all GPT-4 Turbo models newer than the 1106 preview.
lukehollenback Apr 2, 2024
fcc86cd
Forced JSON mode on newer GPT-3 Turbo models as well.
lukehollenback Apr 2, 2024
1eeb9e7
Future-proofed change by added regular GPT-4 Turbo model reference.
lukehollenback Apr 2, 2024
e1acda3
Made main-luke branch run against the fork version.
lukehollenback Apr 2, 2024
9d3b7b8
Added custom prompt support.
lukehollenback Apr 2, 2024
f578b5b
Merge pull request #1 from lukehollenback/custom-prompts
lukehollenback Apr 2, 2024
a91a2d4
Merge pull request #2 from lukehollenback/issue-56_json-mode-on-more-…
lukehollenback Apr 2, 2024
63c8341
Updated action workflow configuration.
lukehollenback Apr 2, 2024
b27b814
Built new version.
lukehollenback Apr 2, 2024
b3da1bd
Updated code_review.yml.
lukehollenback Apr 2, 2024
d46d49b
Changed custom prompt slightly.
lukehollenback Apr 2, 2024
429f5bd
Switched back to old model.
lukehollenback Apr 2, 2024
93befdd
Switched back to the GPT-4 Turbo alias.
lukehollenback Apr 2, 2024
cc6ffd8
Added debug output.
lukehollenback Apr 2, 2024
b9c6b53
Merge pull request #5 from lukehollenback/output-model-response
lukehollenback Apr 2, 2024
573f498
Built new version.
lukehollenback Apr 2, 2024
3a5ed26
Got rid of useless debug message.
lukehollenback Apr 2, 2024
fdb86a5
Allowed max response tokens to be configured.
lukehollenback Apr 2, 2024
e31563c
Merge pull request #6 from lukehollenback/output-model-response
lukehollenback Apr 2, 2024
c3d3226
Built new version.
lukehollenback Apr 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@ on:
types:
- opened
- synchronize
- ready_for_review
permissions: write-all
jobs:
code_review:
if: '! github.event.pull_request.draft'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Code Review
uses: freeedcom/ai-codereviewer@main
uses: lukehollenback/ai-codereviewer@main-luke
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-4-1106-preview"
exclude: "yarn.lock,dist/**"
OPENAI_API_MODEL: "gpt-4-turbo-preview"
exclude: "yarn.lock, dist/**, **/*.json, **/*.md, **/*.yaml, **/*.xml"
custom_prompts: |
Do not worry about the verbosity of variable names, as long as they are somewhat descriptive.
Be sure to call out potential null pointer exceptions.
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ inputs:
description: "OpenAI API model."
required: false
default: "gpt-4"
max_tokens:
description: "Maximum number of tokens that can be generated per analysis."
required: false
default: "700"
exclude:
description: "Glob patterns to exclude files from the diff analysis"
required: false
default: ""
custom_prompts:
description: "Custom commands to augment the agent's prompts with. Each line is an individual command."
required: false
default: ""
runs:
using: "node16"
main: "dist/index.js"
Expand Down
Loading