Skip to content

Commit 92878b9

Browse files
authored
Replace claude-sonnet-4-6 with claude-sonnet-5 (#151)
Sonnet 5 supersedes Sonnet 4.6 at the same standard pricing ($3/$15 per MTok), so this is a straight model swap: new ChatModel id, env var (AZURE_ANTHROPIC_SONNET5_DEPLOYMENT_NAME), and display name.
1 parent 5cde129 commit 92878b9

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ DOWNGRADE_INTENT_DEFAULT_MODEL=
4949
AZURE_ANTHROPIC_RESOURCE_NAME=
5050
AZURE_ANTHROPIC_API_KEY=
5151
AZURE_ANTHROPIC_OPUS48_DEPLOYMENT_NAME=claude-opus-4-8
52-
AZURE_ANTHROPIC_SONNET46_DEPLOYMENT_NAME=claude-sonnet-4-6-2
52+
AZURE_ANTHROPIC_SONNET5_DEPLOYMENT_NAME=claude-sonnet-5
5353

5454
# DALL-E image creation endpoint config
5555
AZURE_OPENAI_DALLE_API_KEY=222222

src/features/chat-page/chat-services/models.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type ChatModel =
2626
// Anthropic Claude models served via the Azure /anthropic surface
2727
// (Messages API) through the "anthropic" provider seam.
2828
| "claude-opus-4-8"
29-
| "claude-sonnet-4-6-2";
29+
| "claude-sonnet-5";
3030

3131
export interface ModelPricing {
3232
inputPerMillion: number;
@@ -236,9 +236,9 @@ export const MODEL_CONFIGS: Record<ChatModel, ModelConfig> = {
236236
// API). Can't call the Azure built-ins (image gen etc.).
237237
capabilities: ["vision", "webSearch"],
238238
},
239-
"claude-sonnet-4-6-2": {
240-
id: "claude-sonnet-4-6-2",
241-
name: "Claude Sonnet 4.6",
239+
"claude-sonnet-5": {
240+
id: "claude-sonnet-5",
241+
name: "Claude Sonnet 5",
242242
description: "Balanced Anthropic model — fast, strong general performance",
243243
getInstance: () => {
244244
throw new Error(
@@ -248,7 +248,7 @@ export const MODEL_CONFIGS: Record<ChatModel, ModelConfig> = {
248248
provider: "anthropic",
249249
supportsReasoning: true,
250250
supportsResponsesAPI: false,
251-
deploymentName: process.env.AZURE_ANTHROPIC_SONNET46_DEPLOYMENT_NAME,
251+
deploymentName: process.env.AZURE_ANTHROPIC_SONNET5_DEPLOYMENT_NAME,
252252
pricing: { inputPerMillion: 3.0, outputPerMillion: 15.0, cachedInputPerMillion: 0.3 },
253253
contextWindow: 1000000,
254254
// Image input + native web search/fetch (wired in the anthropic seam).

src/features/chat-page/chat-services/models/__tests__/provider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe("resolveAnthropicModel — DI seam", () => {
9494
});
9595

9696
it("throws when no deploymentName is configured for the Anthropic model", () => {
97-
const modelId: ChatModel = "claude-sonnet-4-6-2";
97+
const modelId: ChatModel = "claude-sonnet-5";
9898
(MODEL_CONFIGS[modelId] as any).deploymentName = undefined;
9999

100100
expect(() => resolveAnthropicModel(modelId)).toThrow(/no deploymentName/);

src/features/chat-page/chat-services/models/provider-seam.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ describe("provider-seam — Anthropic branch", () => {
247247

248248
it("enables adaptive thinking + mapped effort; no Azure-Responses keys; no tools when toggles off", () => {
249249
const r = resolveProvider({
250-
modelId: "claude-sonnet-4-6-2",
250+
modelId: "claude-sonnet-5",
251251
thread: { id: "thread-xyz", codeInterpreterContainerId: undefined },
252252
toggles: offToggles,
253253
reasoning: { supported: true, effort: "high" },

0 commit comments

Comments
 (0)