Merge pull request #519 from yslinear/hotfix

feat(anthropic): update chat models to include Claude 3.5 Haiku and new version for Sonnet
This commit is contained in:
ItzCrazyKns 2024-12-15 21:32:49 +05:30 committed by GitHub
commit ea74e3013c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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': {