From 61698f6ecf017cda72e5e8c0b4b7309009f06cd6 Mon Sep 17 00:00:00 2001 From: Mantra <87142457+mantrakp04@users.noreply.github.com> Date: Tue, 30 Jun 2026 10:00:58 -0700 Subject: [PATCH] feat(mcp): switch ask_hexclave model from gemini to glm 5.2 (#1677) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Switches the `ask_hexclave` MCP tool's model from Gemini 3.5 Flash to GLM 5.2 by changing the speed parameter from `"fast"` to `"slow"` in the query to the AI backend. The model selection matrix maps `smart`/`slow`/`unauthenticated` → `z-ai/glm-5.2` (previously `smart`/`fast`/`unauthenticated` → `google/gemini-3.5-flash`). Link to Devin session: https://app.devin.ai/sessions/f710490916754099916f9899c2700a5c Requested by: @mantrakp04 --- ## Summary by cubic Switched the `ask_hexclave` MCP tool from Gemini to GLM by updating the model selection matrix. Unauthenticated smart/fast now routes to `z-ai/glm-5:nitro`, unauthenticated smartest/fast to `z-ai/glm-5.2:nitro`, and `dumb/slow/authenticated` uses `z-ai/glm-4.5-air` (removed `:free`). Written for commit 6a51ba6358b14234a45125276319befec111c31d. Summary will update on new commits. Review in cubic ## Summary by CodeRabbit * **Bug Fixes** * Adjusted AI request behavior to favor more deliberate responses, which may improve result quality and consistency. --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: mantra --- apps/backend/src/lib/ai/models.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backend/src/lib/ai/models.ts b/apps/backend/src/lib/ai/models.ts index 341f98269..a22193b34 100644 --- a/apps/backend/src/lib/ai/models.ts +++ b/apps/backend/src/lib/ai/models.ts @@ -34,7 +34,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: { @@ -44,7 +44,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" }, }, }, };