From 28d95fd5e17c2dbc0a301bdb2b9850edd709b92f Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Fri, 21 Jun 2024 13:15:01 +0200 Subject: [PATCH] *: 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,