Add Opus 4.5 and clean-up naming & remove legacy models for anthropic (#1892)
<!-- CURSOR_SUMMARY --> > [!NOTE] > <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is generating a summary for commit fb0aff0bf5e21e1b57bc8744ed9643b863b888d4. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds support for Anthropic Claude Opus 4.5 and standardizes Sonnet naming. Removes legacy 3.x Anthropic models and updates tests to use the new names. - **New Features** - Added "Claude Opus 4.5" with 32k max output and 200k context. - **Migration** - Names standardized to "Claude Sonnet 4" and "Claude Sonnet 4.5". Update any model selections and tests. - Removed Anthropic 3.x models: Claude 3.7 Sonnet, Claude 3.5 Sonnet, Claude 3.5 Haiku, and their Bedrock variants. <sup>Written for commit fb0aff0bf5e21e1b57bc8744ed9643b863b888d4. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
This commit is contained in:
@@ -25,7 +25,7 @@ testSkipIfWindows(
|
||||
await po.setUpDyadPro();
|
||||
// By default, it's using auto which points to Flash 2.5 and doesn't
|
||||
// use engine.
|
||||
await po.selectModel({ provider: "Anthropic", model: "Claude 4 Sonnet" });
|
||||
await po.selectModel({ provider: "Anthropic", model: "Claude Sonnet 4" });
|
||||
await po.sendPrompt("[dump] tc=turbo-edits");
|
||||
|
||||
await po.snapshotServerDump("request");
|
||||
|
||||
@@ -122,9 +122,20 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = {
|
||||
],
|
||||
// https://docs.anthropic.com/en/docs/about-claude/models/all-models#model-comparison-table
|
||||
anthropic: [
|
||||
{
|
||||
name: "claude-opus-4-5",
|
||||
displayName: "Claude Opus 4.5",
|
||||
description:
|
||||
"Anthropic's best model for coding (note: this model is very expensive!)",
|
||||
// Set to 32k since context window is 1M tokens
|
||||
maxOutputTokens: 32_000,
|
||||
contextWindow: 200_000,
|
||||
temperature: 0,
|
||||
dollarSigns: 5,
|
||||
},
|
||||
{
|
||||
name: "claude-sonnet-4-5-20250929",
|
||||
displayName: "Claude 4.5 Sonnet",
|
||||
displayName: "Claude Sonnet 4.5",
|
||||
description:
|
||||
"Anthropic's best model for coding (note: >200k tokens is very expensive!)",
|
||||
// Set to 32k since context window is 1M tokens
|
||||
@@ -135,7 +146,7 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = {
|
||||
},
|
||||
{
|
||||
name: "claude-sonnet-4-20250514",
|
||||
displayName: "Claude 4 Sonnet",
|
||||
displayName: "Claude Sonnet 4",
|
||||
description: "Excellent coder (note: >200k tokens is very expensive!)",
|
||||
// Set to 32k since context window is 1M tokens
|
||||
maxOutputTokens: 32_000,
|
||||
@@ -143,37 +154,6 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = {
|
||||
temperature: 0,
|
||||
dollarSigns: 5,
|
||||
},
|
||||
{
|
||||
name: "claude-3-7-sonnet-latest",
|
||||
displayName: "Claude 3.7 Sonnet",
|
||||
description: "Excellent coder",
|
||||
// Technically the max output tokens is 64k, *however* if the user has a lot of input tokens,
|
||||
// then setting a high max output token will cause the request to fail because
|
||||
// the max output tokens is *included* in the context window limit, see:
|
||||
// https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking#max-tokens-and-context-window-size-with-extended-thinking
|
||||
maxOutputTokens: 16_000,
|
||||
contextWindow: 200_000,
|
||||
temperature: 0,
|
||||
dollarSigns: 4,
|
||||
},
|
||||
{
|
||||
name: "claude-3-5-sonnet-20241022",
|
||||
displayName: "Claude 3.5 Sonnet",
|
||||
description: "Good coder, excellent at following instructions",
|
||||
maxOutputTokens: 8_000,
|
||||
contextWindow: 200_000,
|
||||
temperature: 0,
|
||||
dollarSigns: 4,
|
||||
},
|
||||
{
|
||||
name: "claude-3-5-haiku-20241022",
|
||||
displayName: "Claude 3.5 Haiku",
|
||||
description: "Lightweight coder",
|
||||
maxOutputTokens: 8_000,
|
||||
contextWindow: 200_000,
|
||||
temperature: 0,
|
||||
dollarSigns: 2,
|
||||
},
|
||||
],
|
||||
google: [
|
||||
// https://ai.google.dev/gemini-api/docs/models#gemini-3-pro
|
||||
@@ -466,22 +446,6 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = {
|
||||
contextWindow: 1_000_000,
|
||||
temperature: 0,
|
||||
},
|
||||
{
|
||||
name: "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
|
||||
displayName: "Claude 3.7 Sonnet",
|
||||
description: "Excellent coder",
|
||||
maxOutputTokens: 16_000,
|
||||
contextWindow: 200_000,
|
||||
temperature: 0,
|
||||
},
|
||||
{
|
||||
name: "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
|
||||
displayName: "Claude 3.5 Sonnet",
|
||||
description: "Good coder, excellent at following instructions",
|
||||
maxOutputTokens: 8_000,
|
||||
contextWindow: 200_000,
|
||||
temperature: 0,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user