Skip to content

Commit

Permalink
claude: bump models
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Jan 22, 2025
1 parent 5f9a371 commit b9a3193
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions action.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ 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-5-sonnet-20240620',
bedrock_models: 'anthropic.claude-3-5-sonnet-20240620-v1:0',
anthropic_models: 'claude-3-5-sonnet-20241022',
bedrock_models: 'anthropic.claude-3-5-sonnet-20241022-v2:0',
owner: context.repo.owner,
repo: context.repo.repo,
prnum: context.issue.number,
Expand Down
2 changes: 1 addition & 1 deletion src/anthropicExplainPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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-5-sonnet-20240620'],
models = ['claude-3-5-sonnet-20241022'],
system = SYSTEM_PROMPT,
max_tokens = 3072,
temperature = 1,
Expand Down
3 changes: 2 additions & 1 deletion src/bedrockExplainPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const COUNT_TOKENS_HASHFUN = {
'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-5-sonnet-20241022-v2: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 @@ -46,7 +47,7 @@ const countTokens = (text, modelId) => {
/* eslint-disable camelcase */
export default async function explainPatch ({
patchBody, owner, repo,
models = ['anthropic.claude-3-5-sonnet-20240620-v1:0'],
models = ['anthropic.claude-3-5-sonnet-20241022-v2:0'],
system = SYSTEM_PROMPT,
max_tokens = 3072,
temperature = 1,
Expand Down

0 comments on commit b9a3193

Please sign in to comment.