From c2c622ad82219ab5644dca375456dfde812c8c69 Mon Sep 17 00:00:00 2001 From: Will Gordon Date: Thu, 30 Jul 2026 16:07:34 -0400 Subject: [PATCH] fix(sse): align regex naming and changelog formatting --- .../fixes/9006-vertex-claude-catalog-dispatch.md | 14 +++++++++----- open-sse/utils/ccDiscoveryAliases.ts | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/changelog.d/fixes/9006-vertex-claude-catalog-dispatch.md b/changelog.d/fixes/9006-vertex-claude-catalog-dispatch.md index 525d1bccf9..9fbf6e3e34 100644 --- a/changelog.d/fixes/9006-vertex-claude-catalog-dispatch.md +++ b/changelog.d/fixes/9006-vertex-claude-catalog-dispatch.md @@ -1,6 +1,10 @@ -- fix(sse): Claude reasoning-effort suffix ids (`-high`/`-low`/`-medium`/`-xhigh`) now strip - correctly on any provider serving a real Claude model, not just the direct Anthropic provider; - the no-thinking (`no-think/`) catalog variant's provider-qualification bug (which made it - unusable outside the direct provider) is also fixed; and a single unrecognized model id on a - Vertex connection no longer cools down every other model on that connection for 2 minutes +- **fix(sse):** Claude reasoning-effort suffix ids (`-high`/`-low`/`-medium`/`-xhigh`) now strip + correctly on any provider serving a real Claude model, not just the direct Anthropic provider + ([#9006](https://github.com/diegosouzapw/OmniRoute/pull/9006)) +- **fix(sse):** the no-thinking (`no-think/`) catalog variant's provider-qualification bug — which + made it unusable outside the direct provider, both in the discovery catalog and the dashboard + playground — is fixed ([#9006](https://github.com/diegosouzapw/OmniRoute/pull/9006)) +- **fix(sse):** a single unrecognized model id on a Vertex connection no longer cools down every + other model on that connection for 2 minutes — Vertex 404s are now scoped to a per-model + lockout via `passthroughModels` instead of a connection-wide cooldown ([#9006](https://github.com/diegosouzapw/OmniRoute/pull/9006)) diff --git a/open-sse/utils/ccDiscoveryAliases.ts b/open-sse/utils/ccDiscoveryAliases.ts index 0f36cc1e29..70fda8989b 100644 --- a/open-sse/utils/ccDiscoveryAliases.ts +++ b/open-sse/utils/ccDiscoveryAliases.ts @@ -33,7 +33,7 @@ export const CC_DISCOVERY_COMBO_PREFIX = "claude/combo/"; // Ids that already live under the claude/anthropic namespace — never re-mirror them. const ALREADY_CLAUDE_RE = /^(?:claude|anthropic)(?:\/|$)/i; // Ids that already carry a reasoning-effort suffix — v1 only mirrors base ids. -const EFFORT_SUFFIX_RE = /-(?:xhigh|high|medium|low)$/i; +const CLAUDE_EFFORT_SUFFIX_RE = /-(?:xhigh|high|medium|low)$/i; const NO_THINKING_PREFIX = "no-think/"; // Built-in `auto`/`auto/*` combos are synthesized by createBuiltinAutoCombo, NOT // stored in the DB combos table — the request-path resolver (getComboByName) can't @@ -66,7 +66,7 @@ function isMirrorableId(id: string): boolean { if (id.length === 0) return false; if (ALREADY_CLAUDE_RE.test(id)) return false; if (id.startsWith(NO_THINKING_PREFIX)) return false; - return !EFFORT_SUFFIX_RE.test(id); + return !CLAUDE_EFFORT_SUFFIX_RE.test(id); } /** Strip a `/` prefix to get the bare model name, matching the convention in