Skip to content

Commit ea74e30

Browse files
authored
Merge pull request #519 from yslinear/hotfix
feat(anthropic): update chat models to include Claude 3.5 Haiku and new version for Sonnet
2 parents 2c5ca94 + 1c3c689 commit ea74e30

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/lib/providers/anthropic.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@ export const loadAnthropicChatModels = async () => {
99

1010
try {
1111
const chatModels = {
12-
'claude-3-5-sonnet-20240620': {
12+
'claude-3-5-sonnet-20241022': {
1313
displayName: 'Claude 3.5 Sonnet',
1414
model: new ChatAnthropic({
1515
temperature: 0.7,
1616
anthropicApiKey: anthropicApiKey,
17-
model: 'claude-3-5-sonnet-20240620',
17+
model: 'claude-3-5-sonnet-20241022',
18+
}),
19+
},
20+
'claude-3-5-haiku-20241022': {
21+
displayName: 'Claude 3.5 Haiku',
22+
model: new ChatAnthropic({
23+
temperature: 0.7,
24+
anthropicApiKey: anthropicApiKey,
25+
model: 'claude-3-5-haiku-20241022',
1826
}),
1927
},
2028
'claude-3-opus-20240229': {

0 commit comments

Comments
 (0)