Skip to content

Build your personal knowledge base with Trilium Notes

chore(llm): integrate Opus 4.7

Elian Doran0a18a681c4b3
diff --git a/apps/server/src/services/llm/providers/anthropic.ts b/apps/server/src/services/llm/providers/anthropic.ts
index aef87f8258..3e57ceb5e6 100644
--- a/apps/server/src/services/llm/providers/anthropic.ts
+++ b/apps/server/src/services/llm/providers/anthropic.ts
@@ -11,6 +11,12 @@ import { BaseProvider, buildModelList } from "./base_provider.js";
*/
const { models: AVAILABLE_MODELS, pricing: MODEL_PRICING } = buildModelList([
// ===== Current Models =====
+ {
+ id: "claude-opus-4-7",
+ name: "Claude Opus 4.7",
+ pricing: { input: 5, output: 25 },
+ contextWindow: 1000000
+ },
{
id: "claude-sonnet-4-6",
name: "Claude Sonnet 4.6",
@@ -18,12 +24,6 @@ const { models: AVAILABLE_MODELS, pricing: MODEL_PRICING } = buildModelList([
contextWindow: 1000000,
isDefault: true
},
- {
- id: "claude-opus-4-6",
- name: "Claude Opus 4.6",
- pricing: { input: 5, output: 25 },
- contextWindow: 1000000
- },
{
id: "claude-haiku-4-5-20251001",
name: "Claude Haiku 4.5",
@@ -31,6 +31,13 @@ const { models: AVAILABLE_MODELS, pricing: MODEL_PRICING } = buildModelList([
contextWindow: 200000
},
// ===== Legacy Models =====
+ {
+ id: "claude-opus-4-6",
+ name: "Claude Opus 4.6",
+ pricing: { input: 5, output: 25 },
+ contextWindow: 1000000,
+ isLegacy: true
+ },
{
id: "claude-sonnet-4-5-20250929",
name: "Claude Sonnet 4.5",