diff --git a/action.yml b/action.yml index 1166009..6f4469f 100644 --- a/action.yml +++ b/action.yml @@ -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, diff --git a/src/openaiExplainPatch.js b/src/openaiExplainPatch.js index a8f7eb1..5ee61ca 100644 --- a/src/openaiExplainPatch.js +++ b/src/openaiExplainPatch.js @@ -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.