From c354b5fcf2924eab7b5a77b90d351d2355ae8fa0 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Mon, 29 Jun 2026 15:08:34 -0700 Subject: [PATCH] fix(backend): use paid z-ai/glm-4.5-air slug instead of retired :free variant OpenRouter discontinued the free tier for z-ai/glm-4.5-air, causing AI_APICallError ("This model is unavailable for free") on the dumb/slow/authenticated model path. Switch to the paid slug it recommends. --- apps/backend/src/lib/ai/models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/lib/ai/models.ts b/apps/backend/src/lib/ai/models.ts index 63acc17da..341f98269 100644 --- a/apps/backend/src/lib/ai/models.ts +++ b/apps/backend/src/lib/ai/models.ts @@ -19,7 +19,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: {