From 6a51ba6358b14234a45125276319befec111c31d Mon Sep 17 00:00:00 2001 From: mantrakp04 Date: Tue, 30 Jun 2026 09:59:02 -0700 Subject: [PATCH] fix(models): update model IDs in selection matrix for authenticated and unauthenticated speeds --- apps/backend/src/lib/ai/models.ts | 6 +++--- apps/mcp/src/mcp-handler.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/backend/src/lib/ai/models.ts b/apps/backend/src/lib/ai/models.ts index 69c58eaf6..fe228c62d 100644 --- a/apps/backend/src/lib/ai/models.ts +++ b/apps/backend/src/lib/ai/models.ts @@ -18,7 +18,7 @@ const MODEL_SELECTION_MATRIX: Record< > = { dumb: { slow: { - authenticated: { modelId: "z-ai/glm-4.5-air:free" }, + authenticated: { modelId: "z-ai/glm-4.5-air" }, unauthenticated: { modelId: "nvidia/nemotron-3-super-120b-a12b" }, }, fast: { @@ -33,7 +33,7 @@ const MODEL_SELECTION_MATRIX: Record< }, fast: { authenticated: { modelId: "openai/gpt-5.5" }, - unauthenticated: { modelId: "google/gemini-3.5-flash" }, + unauthenticated: { modelId: "z-ai/glm-5:nitro" }, }, }, smartest: { @@ -43,7 +43,7 @@ const MODEL_SELECTION_MATRIX: Record< }, fast: { authenticated: { modelId: "openai/gpt-5.5" }, - unauthenticated: { modelId: "google/gemini-3.5-flash" }, + unauthenticated: { modelId: "z-ai/glm-5.2:nitro" }, }, }, }; diff --git a/apps/mcp/src/mcp-handler.ts b/apps/mcp/src/mcp-handler.ts index cf9453464..ddb3c7e47 100644 --- a/apps/mcp/src/mcp-handler.ts +++ b/apps/mcp/src/mcp-handler.ts @@ -143,7 +143,7 @@ export function createHexclaveMcpHandler(config: { streamableHttpEndpoint: strin headers: { "Content-Type": "application/json" }, body: JSON.stringify({ quality: "smart", - speed: "slow", + speed: "fast", tools: ["docs"], systemPrompt: "docs-ask-ai", messages: [{ role: "user", content: question }],