Skip to content

Commit

Permalink
*: use latest GPT-4 models
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Mar 13, 2024
1 parent d961a9c commit be3a85d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ runs:
"debounce_time": "6",
"amplification": "4",
"filterdiff_args": "--exclude=**/package-lock.json --exclude=**/yarn.lock --exclude=**/*.js.map --exclude=**/*.svg --exclude=**/test/data/**/*",
"openai_models": "gpt-3.5-turbo-0125",
"openai_models": "gpt-4-0125-preview gpt-3.5-turbo-0125",
"anthropic_models": "claude-3-opus-20240229",
"owner": context.repo.owner,
"repo": context.repo.repo,
Expand Down
2 changes: 1 addition & 1 deletion src/openaiExplainPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import OpenAI from "openai";
import { encoding_for_model } from "tiktoken";

export default async function explainPatch({apiKey, patchBody, owner, repo,
models = ["gpt-3.5-turbo-0125"],
models = ["gpt-4-0125-preview", "gpt-3.5-turbo-0125"],
system = `
You are an expert software engineer reviewing a pull request on Github. Lines that start with "+" have been added, lines that start with "-" have been deleted. Use markdown for formatting your review.
Expand Down

0 comments on commit be3a85d

Please # to comment.