From 662edf0b4db23c8c57a4db2a142e5ae7bb6d8c74 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Fri, 21 Jun 2024 13:09:37 +0200 Subject: [PATCH 1/2] src/openaiExplainPatch.js: move to 4o --- src/openaiExplainPatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openaiExplainPatch.js b/src/openaiExplainPatch.js index 6d0d853..3248b9f 100644 --- a/src/openaiExplainPatch.js +++ b/src/openaiExplainPatch.js @@ -5,7 +5,7 @@ import { SYSTEM_PROMPT, explainPatchHelper } from './utils.js' export default async function explainPatch ({ apiKey, patchBody, owner, repo, - models = ['gpt-4-0125-preview', 'gpt-3.5-turbo-0125'], + models = ['gpt-4o-2024-05-13', 'gpt-3.5-turbo-0125'], system = SYSTEM_PROMPT, max_tokens = 2048, temperature = 1, From 28d95fd5e17c2dbc0a301bdb2b9850edd709b92f Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Fri, 21 Jun 2024 13:15:01 +0200 Subject: [PATCH 2/2] *: anthropic, move to claude 3.5 sonnet --- action.cjs | 2 +- src/anthropicExplainPatch.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.cjs b/action.cjs index 341661b..aca36a7 100644 --- a/action.cjs +++ b/action.cjs @@ -19,7 +19,7 @@ module.exports = async ({ github, context, inputs, actionPath }) => { amplification: '4', filterdiff_args: '--exclude=**/package-lock.json --exclude=**/yarn.lock --exclude=**/*.js.map --exclude=**/*.svg --exclude=**/test/data/**/* --exclude=**/docs/**/* --exclude=**/deploy/**/* --exclude=**/.htpasswd', openai_models: 'gpt-4o-2024-05-13 gpt-3.5-turbo-0125', - anthropic_models: 'claude-3-opus-20240229', + anthropic_models: 'claude-3-5-sonnet-20240620', bedrock_models: 'anthropic.claude-3-opus-20240229-v1:0', owner: context.repo.owner, repo: context.repo.repo, diff --git a/src/anthropicExplainPatch.js b/src/anthropicExplainPatch.js index 0a582f7..9eee23c 100644 --- a/src/anthropicExplainPatch.js +++ b/src/anthropicExplainPatch.js @@ -5,7 +5,7 @@ import { SYSTEM_PROMPT, explainPatchHelper } from './utils.js' /* eslint-disable camelcase */ export default async function explainPatch ({ apiKey, patchBody, owner, repo, - models = ['claude-3-opus-20240229'], + models = ['claude-3-5-sonnet-20240620'], system = SYSTEM_PROMPT, max_tokens = 2048, temperature = 1,