mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
improvement(models): added 3.5 sonnet
This commit is contained in:
@@ -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> => {
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user