From 6d941d8a07036abba6b9e1cdb8cd65d02f0aa072 Mon Sep 17 00:00:00 2001 From: Ravi Tharuma Date: Thu, 29 Oct 2026 00:49:08 +0000 Subject: [PATCH 1/2] fix(sse): restore the missing getComboByName import Client-namespaced combo resolution (/) was throwing ReferenceError: getComboByName is not defined at runtime, failing every request on that path and the five existing unit tests covering it. --- src/sse/services/model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sse/services/model.ts b/src/sse/services/model.ts index 126579004e2c..d2982a606af5 100644 --- a/src/sse/services/model.ts +++ b/src/sse/services/model.ts @@ -1,6 +1,6 @@ // Re-export from open-sse with localDb integration import { getModelAliases, getCustomModels } from "@/lib/db/models"; -import { getComboById, getComboByNameInsensitive } from "@/lib/db/combos"; +import { getComboById, getComboByName, getComboByNameInsensitive } from "@/lib/db/combos"; import { getCachedComboByName } from "@/lib/db/readCache"; import { getCachedProviderNodes, getCachedSettings } from "@/lib/db/readCache"; From a8b2679954e7f5981d9f2731ed2c0bfcc36abc39 Mon Sep 17 00:00:00 2001 From: Ravi Tharuma Date: Thu, 29 Oct 2026 00:49:54 +0000 Subject: [PATCH 2/2] docs(changelog): record the getComboByName import fix --- changelog.d/fixes/18523-model-combo-byname-import.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/fixes/18523-model-combo-byname-import.md diff --git a/changelog.d/fixes/18523-model-combo-byname-import.md b/changelog.d/fixes/18523-model-combo-byname-import.md new file mode 100644 index 000000000000..24f238485da0 --- /dev/null +++ b/changelog.d/fixes/18523-model-combo-byname-import.md @@ -0,0 +1 @@ +- **fix(sse):** client-namespaced combo resolution restored — a missing `getComboByName` import was throwing `ReferenceError` for every `/` request ([#18523](https://github.com/diegosouzapw/OmniRoute/pull/18523)) — thanks @RaviTharuma