From be3a85d0080d82db13d8e8f4f09d878b47ead1a3 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Wed, 13 Mar 2024 18:36:18 +0100 Subject: [PATCH] *: use latest GPT-4 models --- action.yml | 2 +- src/openaiExplainPatch.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.