From aac211ea625d03e2616fad1586b1bd1d8803ff1a Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Mon, 29 Jan 2024 22:49:10 +0100 Subject: [PATCH] action: update to gpt-3.5-turbo-0125 --- action.yml | 2 +- src/openaiExplainPatch.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index bafd300..a3b0fa6 100644 --- a/action.yml +++ b/action.yml @@ -88,7 +88,7 @@ runs: "debounce_time": "6", "amplification": "4", "filterdiff_args": "--exclude=**/package-lock.json --exclude=**/yarn.lock --exclude=**/*.js.map --exclude=**/*.svg", - "openai_models": "gpt-3.5-turbo-16k-0613", + "openai_models": "gpt-3.5-turbo-0125", "owner": context.repo.owner, "repo": context.repo.repo, "prnum": context.issue.number, diff --git a/src/openaiExplainPatch.js b/src/openaiExplainPatch.js index 56b22a3..8f4b836 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({openaiKey, patchBody, owner, repo, - models = ["gpt-3.5-turbo-1106"], + models = ["gpt-3.5-turbo-0125"], system_prompt = ` 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.