From 2b258b14732c9a0f50cc3552a27ebf0f68be4e53 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 22 May 2025 13:17:32 -0400 Subject: switch default to claude sonnet 4 --- internal/llm/models/anthropic.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'internal/llm') diff --git a/internal/llm/models/anthropic.go b/internal/llm/models/anthropic.go index 156924a47..f67a74842 100644 --- a/internal/llm/models/anthropic.go +++ b/internal/llm/models/anthropic.go @@ -9,6 +9,7 @@ const ( Claude37Sonnet ModelID = "claude-3.7-sonnet" Claude35Haiku ModelID = "claude-3.5-haiku" Claude3Opus ModelID = "claude-3-opus" + Claude4Sonnet ModelID = "claude-4-sonnet" ) // https://docs.anthropic.com/en/docs/about-claude/models/all-models @@ -53,6 +54,20 @@ var AnthropicModels = map[ModelID]Model{ CanReason: true, SupportsAttachments: true, }, + Claude4Sonnet: { + ID: Claude4Sonnet, + Name: "Claude 4 Sonnet", + Provider: ProviderAnthropic, + APIModel: "claude-sonnet-4-20250514", + CostPer1MIn: 3.0, + CostPer1MInCached: 3.75, + CostPer1MOutCached: 0.30, + CostPer1MOut: 15.0, + ContextWindow: 200000, + DefaultMaxTokens: 50000, + CanReason: true, + SupportsAttachments: true, + }, Claude35Haiku: { ID: Claude35Haiku, Name: "Claude 3.5 Haiku", -- cgit v1.2.3