From 6de7f9e8c3a3bb6089130b7bfc8a29f0aa70fb29 Mon Sep 17 00:00:00 2001 From: "Tim Z." <91899951+aimbotterz@users.noreply.github.com> Date: Tue, 7 Apr 2026 15:25:01 +0200 Subject: [PATCH] feat(routing): hardcoded default routing threshold raised to 0.65 --- pkg/routing/router.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/routing/router.go b/pkg/routing/router.go index b1fa347e9..c65d65547 100644 --- a/pkg/routing/router.go +++ b/pkg/routing/router.go @@ -5,9 +5,11 @@ import ( ) // defaultThreshold is used when the config threshold is zero or negative. -// At 0.35 a message needs at least one strong signal (code block, long text, -// or an attachment) before the heavy model is chosen. -const defaultThreshold = 0.35 +// Raised to 0.65 so that 95%+ of everyday messages stay on the light model +// (Gemini Flash). Only messages with multiple strong signals — e.g. a code +// block inside a long prompt, or a dense multi-tool agentic chain — cross +// this bar and escalate to the heavy model (Claude). +const defaultThreshold = 0.65 // RouterConfig holds the validated model routing settings. // It mirrors config.RoutingConfig but lives in pkg/routing to keep the