Skip to content

Commit 9b98f26

Browse files
fontanierhHenry Fontanier
andauthored
enh: upgrade to latest claude sonnet model (#8168)
Co-authored-by: Henry Fontanier <henry@dust.tt>
1 parent ddbf85a commit 9b98f26

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

types/src/front/lib/assistant.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ export const O1_MINI_MODEL_ID = "o1-mini" as const;
9292
export const CLAUDE_3_OPUS_2024029_MODEL_ID = "claude-3-opus-20240229" as const;
9393
export const CLAUDE_3_5_SONNET_20240620_MODEL_ID =
9494
"claude-3-5-sonnet-20240620" as const;
95+
export const CLAUDE_3_5_SONNET_20241022_MODEL_ID =
96+
"claude-3-5-sonnet-20241022" as const;
9597
export const CLAUDE_3_HAIKU_20240307_MODEL_ID =
9698
"claude-3-haiku-20240307" as const;
9799
export const CLAUDE_2_1_MODEL_ID = "claude-2.1" as const;
@@ -114,6 +116,7 @@ export const MODEL_IDS = [
114116
O1_MINI_MODEL_ID,
115117
CLAUDE_3_OPUS_2024029_MODEL_ID,
116118
CLAUDE_3_5_SONNET_20240620_MODEL_ID,
119+
CLAUDE_3_5_SONNET_20241022_MODEL_ID,
117120
CLAUDE_3_HAIKU_20240307_MODEL_ID,
118121
CLAUDE_2_1_MODEL_ID,
119122
CLAUDE_INSTANT_1_2_MODEL_ID,
@@ -341,9 +344,27 @@ export const CLAUDE_3_OPUS_DEFAULT_MODEL_CONFIG: ModelConfigurationType = {
341344
supportsVision: true,
342345
toolUseMetaPrompt: ANTHROPIC_TOOL_USE_META_PROMPT,
343346
};
347+
348+
export const CLAUDE_3_5_SONNET_20240620_DEPRECATED_MODEL_CONFIG: ModelConfigurationType =
349+
{
350+
providerId: "anthropic",
351+
modelId: CLAUDE_3_5_SONNET_20240620_MODEL_ID,
352+
displayName: "Claude 3.5 Sonnet",
353+
contextSize: 180_000,
354+
recommendedTopK: 32,
355+
recommendedExhaustiveTopK: 128, // 65_536
356+
largeModel: true,
357+
description: "Anthropic's latest Claude 3.5 Sonnet model (200k context).",
358+
shortDescription: "Anthropic's latest model.",
359+
isLegacy: false,
360+
delimitersConfiguration: ANTHROPIC_DELIMITERS_CONFIGURATION,
361+
supportsVision: true,
362+
toolUseMetaPrompt: ANTHROPIC_TOOL_USE_META_PROMPT,
363+
};
364+
344365
export const CLAUDE_3_5_SONNET_DEFAULT_MODEL_CONFIG: ModelConfigurationType = {
345366
providerId: "anthropic",
346-
modelId: CLAUDE_3_5_SONNET_20240620_MODEL_ID,
367+
modelId: CLAUDE_3_5_SONNET_20241022_MODEL_ID,
347368
displayName: "Claude 3.5 Sonnet",
348369
contextSize: 180_000,
349370
recommendedTopK: 32,
@@ -492,6 +513,7 @@ export const SUPPORTED_MODEL_CONFIGS: ModelConfigurationType[] = [
492513
O1_PREVIEW_MODEL_CONFIG,
493514
O1_MINI_MODEL_CONFIG,
494515
CLAUDE_3_OPUS_DEFAULT_MODEL_CONFIG,
516+
CLAUDE_3_5_SONNET_20240620_DEPRECATED_MODEL_CONFIG,
495517
CLAUDE_3_5_SONNET_DEFAULT_MODEL_CONFIG,
496518
CLAUDE_3_HAIKU_DEFAULT_MODEL_CONFIG,
497519
CLAUDE_2_DEFAULT_MODEL_CONFIG,

0 commit comments

Comments
 (0)