Skip to content

Commit

Permalink
Remove references to Sonnet 3 (in favor of 3.5) (#5768)
Browse files Browse the repository at this point in the history
* remove CLAUDE_3_SONNET

* nit

* Add sonnet 3.5 to dust apps
  • Loading branch information
spolu authored Jun 20, 2024
1 parent bf06e4a commit 724f9a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 54 deletions.
1 change: 1 addition & 0 deletions front/pages/api/w/[wId]/providers/[pId]/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ async function handler(
{ id: "claude-2.1" },
{ id: "claude-3-haiku-20240307" },
{ id: "claude-3-sonnet-20240229" },
{ id: "claude-3-5-sonnet-20240620" },
{ id: "claude-3-opus-20240229" },
];
} else {
Expand Down
55 changes: 1 addition & 54 deletions types/src/front/lib/assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function getSmallWhitelistedModel(
return GPT_3_5_TURBO_MODEL_CONFIG;
}
if (isProviderWhitelisted(owner, "anthropic")) {
return CLAUDE_3_SONNET_DEFAULT_MODEL_CONFIG;
return CLAUDE_3_5_SONNET_DEFAULT_MODEL_CONFIG;
}
if (isProviderWhitelisted(owner, "google_ai_studio")) {
return GEMINI_FLASH_DEFAULT_MODEL_CONFIG;
Expand Down Expand Up @@ -105,8 +105,6 @@ export const GPT_3_5_TURBO_MODEL_ID = "gpt-3.5-turbo" as const;
export const CLAUDE_3_OPUS_2024029_MODEL_ID = "claude-3-opus-20240229" as const;
export const CLAUDE_3_5_SONNET_20240620_MODEL_ID =
"claude-3-5-sonnet-20240620" as const;
export const CLAUDE_3_SONNET_2024029_MODEL_ID =
"claude-3-sonnet-20240229" as const;
export const CLAUDE_3_HAIKU_20240307_MODEL_ID =
"claude-3-haiku-20240307" as const;
export const CLAUDE_2_1_MODEL_ID = "claude-2.1" as const;
Expand All @@ -124,7 +122,6 @@ export const MODEL_IDS = [
GPT_4O_MODEL_ID,
CLAUDE_3_OPUS_2024029_MODEL_ID,
CLAUDE_3_5_SONNET_20240620_MODEL_ID,
CLAUDE_3_SONNET_2024029_MODEL_ID,
CLAUDE_3_HAIKU_20240307_MODEL_ID,
CLAUDE_2_1_MODEL_ID,
CLAUDE_INSTANT_1_2_MODEL_ID,
Expand Down Expand Up @@ -311,55 +308,6 @@ export const CLAUDE_3_5_SONNET_DEFAULT_MODEL_CONFIG: ModelConfigurationType = {
],
},
};
export const CLAUDE_3_SONNET_DEFAULT_MODEL_CONFIG: ModelConfigurationType = {
providerId: "anthropic",
modelId: CLAUDE_3_SONNET_2024029_MODEL_ID,
displayName: "Claude 3 Sonnet",
contextSize: 180_000,
recommendedTopK: 32,
recommendedExhaustiveTopK: 128, // 65_536
largeModel: true,
description:
"Anthropic Claude 3 Sonnet model, targeting balance between intelligence and speed for enterprise workloads.",
shortDescription: "Anthropic's balanced model.",
supportsMultiActions: true,
isLegacy: false,
delimitersConfiguration: {
incompleteDelimiterRegex: /<\/?[a-zA-Z_]*$/,
delimiters: [
{
openingPattern: "<thinking>",
closingPattern: "</thinking>",
isChainOfThought: true,
swallow: false,
},
{
openingPattern: "<search_quality_reflection>",
closingPattern: "</search_quality_reflection>",
isChainOfThought: true,
swallow: false,
},
{
openingPattern: "<reflecting>",
closingPattern: "</reflecting>",
isChainOfThought: true,
swallow: false,
},
{
openingPattern: "<search_quality_score>",
closingPattern: "</search_quality_score>",
isChainOfThought: true,
swallow: true,
},
{
openingPattern: "<result>",
closingPattern: "</result>",
isChainOfThought: false,
swallow: false,
},
],
},
};
export const CLAUDE_3_HAIKU_DEFAULT_MODEL_CONFIG: ModelConfigurationType = {
providerId: "anthropic",
modelId: CLAUDE_3_HAIKU_20240307_MODEL_ID,
Expand Down Expand Up @@ -477,7 +425,6 @@ export const SUPPORTED_MODEL_CONFIGS: ModelConfigurationType[] = [
GPT_4_TURBO_MODEL_CONFIG,
GPT_4O_MODEL_CONFIG,
CLAUDE_3_OPUS_DEFAULT_MODEL_CONFIG,
CLAUDE_3_SONNET_DEFAULT_MODEL_CONFIG,
CLAUDE_3_5_SONNET_DEFAULT_MODEL_CONFIG,
CLAUDE_3_HAIKU_DEFAULT_MODEL_CONFIG,
CLAUDE_2_DEFAULT_MODEL_CONFIG,
Expand Down

0 comments on commit 724f9a7

Please sign in to comment.