Skip to content

Commit

Permalink
*: bedrock, move to claude 3.5 sonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Jun 21, 2024
1 parent cf88720 commit d3d627e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = async ({ github, context, inputs, actionPath }) => {
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',
bedrock_models: 'anthropic.claude-3-opus-20240229-v1:0',
bedrock_models: 'anthropic.claude-3-5-sonnet-20240620-v1:0',
owner: context.repo.owner,
repo: context.repo.repo,
prnum: context.issue.number,
Expand Down
3 changes: 2 additions & 1 deletion src/bedrockExplainPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const COUNT_TOKENS_HASHFUN = {
'anthropic.claude-v2': anthropicCountTokens,
'anthropic.claude-v2:1': anthropicCountTokens,
'anthropic.claude-3-sonnet-20240229-v1:0': anthropicCountTokens,
'anthropic.claude-3-5-sonnet-20240620-v1:0': anthropicCountTokens,
'anthropic.claude-3-haiku-20240307-v1:0': anthropicCountTokens,
'anthropic.claude-3-opus-20240229-v1:0': anthropicCountTokens,
'anthropic.claude-instant-v1': anthropicCountTokens,
Expand Down Expand Up @@ -45,7 +46,7 @@ const countTokens = (text, modelId) => {
/* eslint-disable camelcase */
export default async function explainPatch ({
patchBody, owner, repo,
models = ['anthropic.claude-3-opus-20240229-v1:0'],
models = ['anthropic.claude-3-5-sonnet-20240620-v1:0'],
system = SYSTEM_PROMPT,
max_tokens = 2048,
temperature = 1,
Expand Down

0 comments on commit d3d627e

Please sign in to comment.