feat(anthropic): update chat models to include Claude 3.5 Haiku and new version for Sonnet

This commit is contained in:
Ying-Shan Lin 2024-12-13 17:24:15 +08:00
parent 2c5ca94b3c
commit 1c3c689039
No known key found for this signature in database
GPG Key ID: 6376B887E1D43067
1 changed files with 10 additions and 2 deletions

View File

@ -9,12 +9,20 @@ export const loadAnthropicChatModels = async () => {
try { try {
const chatModels = { const chatModels = {
'claude-3-5-sonnet-20240620': { 'claude-3-5-sonnet-20241022': {
displayName: 'Claude 3.5 Sonnet', displayName: 'Claude 3.5 Sonnet',
model: new ChatAnthropic({ model: new ChatAnthropic({
temperature: 0.7, temperature: 0.7,
anthropicApiKey: anthropicApiKey, anthropicApiKey: anthropicApiKey,
model: 'claude-3-5-sonnet-20240620', model: 'claude-3-5-sonnet-20241022',
}),
},
'claude-3-5-haiku-20241022': {
displayName: 'Claude 3.5 Haiku',
model: new ChatAnthropic({
temperature: 0.7,
anthropicApiKey: anthropicApiKey,
model: 'claude-3-5-haiku-20241022',
}), }),
}, },
'claude-3-opus-20240229': { 'claude-3-opus-20240229': {