improvement(models): added 3.5 sonnet

This commit is contained in:
Emir Karabeg
2025-04-01 17:36:55 -07:00
parent e6413ca558
commit 64a8f604e2
4 changed files with 9 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ export const anthropicProvider: ProviderConfig = {
name: 'Anthropic',
description: "Anthropic's Claude models",
version: '1.0.0',
models: ['claude-3-7-sonnet-20250219'],
models: ['claude-3-5-sonnet-20240620', 'claude-3-7-sonnet-20250219'],
defaultModel: 'claude-3-7-sonnet-20250219',
executeRequest: async (request: ProviderRequest): Promise<ProviderResponse> => {

View File

@@ -17,6 +17,7 @@ export const MODELS_TEMP_RANGE_0_2 = [
// Models that support temperature with range 0-1
export const MODELS_TEMP_RANGE_0_1 = [
// Anthropic models
'claude-3-5-sonnet-20240620',
'claude-3-7-sonnet-20250219',
// xAI models
'grok-2-latest',

View File

@@ -28,6 +28,12 @@ const modelPricing: ModelPricingMap = {
},
// Anthropic Models
'claude-3-5-sonnet-20240620': {
input: 3.0,
cachedInput: 1.5,
output: 15.0,
updatedAt: '2024-06-20',
},
'claude-3-7-sonnet-20250219': {
input: 3.0,
cachedInput: 1.5,

View File

@@ -30,7 +30,7 @@ export const providers: Record<
},
anthropic: {
...anthropicProvider,
models: ['claude-3-7-sonnet-20250219'],
models: ['claude-3-5-sonnet-20240620', 'claude-3-7-sonnet-20250219'],
modelPatterns: [/^claude/],
},
google: {