Skip to content

Commit

Permalink
Add Claude 3.5 haiku and switch to -latest tag for sonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
abrenneke committed Feb 8, 2025
1 parent 74edaec commit 708fd6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion packages/core/src/plugins/anthropic/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,22 @@ export const anthropicModels = {
},
displayName: 'Claude 3 Opus',
},
'claude-3-5-sonnet-20240620': {
'claude-3-5-sonnet-latest': {
maxTokens: 200_000,
cost: {
prompt: 3e-6,
completion: 15e-6,
},
displayName: 'Claude 3.5 Sonnet',
},
'claude-3-5-haiku-latest': {
maxTokens: 200_000,
cost: {
prompt: 0.8e-6,
completion: 4e-6,
},
displayName: 'Claude 3.5 Haiku',
},
} satisfies Record<string, AnthropicModel>;

export type AnthropicModels = keyof typeof anthropicModels;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const ChatAnthropicNodeImpl: PluginNodeImpl<ChatAnthropicNode> = {
width: 275,
},
data: {
model: 'claude-3-5-sonnet-20240620',
model: 'claude-3-5-sonnet-latest',
useModelInput: false,

temperature: 0.5,
Expand Down

0 comments on commit 708fd6c

Please sign in to comment.