Skip to content

Commit 714ea1e

Browse files
bchapuisclaude
andcommitted
Replace deprecated claude-*-4-0 model aliases with current ids
The claude-sonnet-4-0 / claude-opus-4-0 aliases now 404 (not_found) through the AI Gateway. Point the Sonnet 4 nodes at claude-sonnet-4-6 and the Opus 4 node at claude-opus-4-8, and correct the Opus pricing to 4.8 rates ($5/$25 per MTok). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 95574bd commit 714ea1e

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

apps/api/src/routes/admin/onboarding-message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const DORMANCY_DAYS = 30;
3838
// and lets the gateway inject the real key. Faster end-to-end for the
3939
// admin's interactive draft flow than Workers AI Llama 70B, and tool-use
4040
// gives reliable structured JSON.
41-
const DRAFT_MODEL = "claude-sonnet-4-0";
41+
const DRAFT_MODEL = "claude-sonnet-4-6";
4242

4343
interface PastSupportMessage {
4444
direction: "inbound" | "outbound";

packages/runtime/src/nodes/agent/agent-claude-sonnet-4-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class AgentClaudeSonnet4Node extends BaseAgentNode {
66
// https://www.anthropic.com/pricing
77
protected static readonly agentConfig = {
88
provider: "anthropic" as const,
9-
model: "claude-sonnet-4-0",
9+
model: "claude-sonnet-4-6",
1010
pricing: { inputCostPerMillion: 3.0, outputCostPerMillion: 15.0 },
1111
};
1212

packages/runtime/src/nodes/anthropic/claude-opus-4-node.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { TokenPricing } from "../../utils/usage";
44
import { executeAnthropicModel } from "./execute-anthropic-model";
55

66
const PRICING: TokenPricing = {
7-
inputCostPerMillion: 15.0,
8-
outputCostPerMillion: 75.0,
7+
inputCostPerMillion: 5.0,
8+
outputCostPerMillion: 25.0,
99
};
1010

1111
export class ClaudeOpus4Node extends ExecutableNode {
@@ -46,6 +46,6 @@ export class ClaudeOpus4Node extends ExecutableNode {
4646
};
4747

4848
async execute(context: NodeContext): Promise<NodeExecution> {
49-
return executeAnthropicModel(this, context, "claude-opus-4-0", PRICING);
49+
return executeAnthropicModel(this, context, "claude-opus-4-8", PRICING);
5050
}
5151
}

packages/runtime/src/nodes/anthropic/claude-sonnet-4-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ export class ClaudeSonnet4Node extends ExecutableNode {
4545
};
4646

4747
async execute(context: NodeContext): Promise<NodeExecution> {
48-
return executeAnthropicModel(this, context, "claude-sonnet-4-0", PRICING);
48+
return executeAnthropicModel(this, context, "claude-sonnet-4-6", PRICING);
4949
}
5050
}

packages/runtime/src/nodes/email/email-agent-claude-sonnet-4-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class EmailAgentClaudeSonnet4Node extends BaseEmailAgentNode {
99
// https://www.anthropic.com/pricing
1010
protected static readonly agentConfig = {
1111
provider: "anthropic" as const,
12-
model: "claude-sonnet-4-0",
12+
model: "claude-sonnet-4-6",
1313
pricing: { inputCostPerMillion: 3.0, outputCostPerMillion: 15.0 },
1414
};
1515

0 commit comments

Comments
 (0)