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, 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,