From 22011437f8c9ff7d6d36c04bd76a25f2ff628c11 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 30 Aug 2026 11:27:57 +0300 Subject: [PATCH] fix(providers): route OrcaRouter chat requests to /v1/chat/completions (#11923) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Boarded with 8 other PRs in one combined worktree: typecheck:core, check:file-size, check:changelog-integrity, check:complexity, check:cognitive-complexity, check:cycles, check-native-deps all green. Retargeted from main to release/v3.8.51. One-line baseUrl fix with a live endpoint probe documenting the exact 404→401 transition — solid verification. Thanks. --- changelog.d/fixes/11923-orcarouter-baseurl.md | 1 + open-sse/config/providers/registry/orcarouter/index.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/fixes/11923-orcarouter-baseurl.md diff --git a/changelog.d/fixes/11923-orcarouter-baseurl.md b/changelog.d/fixes/11923-orcarouter-baseurl.md new file mode 100644 index 0000000000..672ebf26b2 --- /dev/null +++ b/changelog.d/fixes/11923-orcarouter-baseurl.md @@ -0,0 +1 @@ +- **fix(providers):** OrcaRouter chat requests now target `/v1/chat/completions` instead of the bare `/v1` API root, fixing the upstream `404 Invalid URL (POST /v1)` ([#11923](https://github.com/diegosouzapw/OmniRoute/pull/11923)). diff --git a/open-sse/config/providers/registry/orcarouter/index.ts b/open-sse/config/providers/registry/orcarouter/index.ts index d8d7d5bb59..c6247d9ab7 100644 --- a/open-sse/config/providers/registry/orcarouter/index.ts +++ b/open-sse/config/providers/registry/orcarouter/index.ts @@ -13,7 +13,7 @@ export const orcarouterProvider: RegistryEntry = { alias: "orcarouter", format: "openai", executor: "default", - baseUrl: "https://api.orcarouter.ai/v1", + baseUrl: "https://api.orcarouter.ai/v1/chat/completions", authType: "apikey", authHeader: "bearer", defaultContextLength: 128000,