Skip to content

Build your personal knowledge base with Trilium Notes

fix(llm): wrong context window

Elian Doran0654bc10498c
diff --git a/apps/server/src/services/llm/providers/anthropic.ts b/apps/server/src/services/llm/providers/anthropic.ts
index 87ed2d459a..68ca353b99 100644
--- a/apps/server/src/services/llm/providers/anthropic.ts
+++ b/apps/server/src/services/llm/providers/anthropic.ts
@@ -26,14 +26,14 @@ const BASE_MODELS: Omit<ModelInfo, "costMultiplier">[] = [
id: "claude-sonnet-4-6",
name: "Claude Sonnet 4.6",
pricing: { input: 3, output: 15 },
- contextWindow: 200000,
+ contextWindow: 1000000,
isDefault: true
},
{
id: "claude-opus-4-6",
name: "Claude Opus 4.6",
pricing: { input: 5, output: 25 },
- contextWindow: 200000
+ contextWindow: 1000000
},
{
id: "claude-haiku-4-5-20251001",
@@ -46,7 +46,7 @@ const BASE_MODELS: Omit<ModelInfo, "costMultiplier">[] = [
id: "claude-sonnet-4-5-20250929",
name: "Claude Sonnet 4.5",
pricing: { input: 3, output: 15 },
- contextWindow: 200000
+ contextWindow: 200000 // 1M available with beta header
},
{
id: "claude-opus-4-5-20251101",
@@ -64,7 +64,7 @@ const BASE_MODELS: Omit<ModelInfo, "costMultiplier">[] = [
id: "claude-sonnet-4-20250514",
name: "Claude Sonnet 4.0",
pricing: { input: 3, output: 15 },
- contextWindow: 200000
+ contextWindow: 200000 // 1M available with beta header
},
{
id: "claude-opus-4-20250514",