Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

chore(release): v3.8.17 — 2026-06-09

diegosouzapw259486afb574
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2d5cb50d76..6803771b02 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,15 +4,45 @@
---
-## [3.8.17] — Unreleased
+## [3.8.17] — 2026-06-09
-_Development cycle in progress — entries are added as work merges into `release/v3.8.17` and finalized by the release flow._
+### ✨ New Features
+
+- **feat(providers):** LMArena provider — routes requests to the LMArena battle platform via the new `lmarena` executor; supports streaming chat completions. ([#3421](https://github.com/diegosouzapw/OmniRoute/pull/3421) — thanks @oyi77)
+- **feat(providers):** ZenMux provider — adds the `zenmux` executor for ZenMux's OpenAI-compatible endpoint with streaming support. ([#3429](https://github.com/diegosouzapw/OmniRoute/pull/3429) — thanks @oyi77)
+- **feat(providers):** Gemini Business provider — adds the `gemini-business` executor (Phase 2C of the Google provider expansion), enabling Gemini models via Google Workspace accounts. ([#3436](https://github.com/diegosouzapw/OmniRoute/pull/3436) — thanks @oyi77)
+- **feat(plugin+api):** auto-combos API + free model quota display — new `GET /api/combos/auto` endpoint lists dynamically scored combos; provider pages now surface free-tier quotas inline; MCP-plugin surface extended to match. ([#3435](https://github.com/diegosouzapw/OmniRoute/pull/3435) — thanks @mrmm)
+- **feat(opencode-plugin):** per-prefix API format selection, debug logging, and free-label normaliser — three backports from the mrmm fork: each route prefix can specify its own wire format (OpenAI / Anthropic / Gemini), structured debug output is toggled via env var, and free-tier labels are normalized across providers. ([#3420](https://github.com/diegosouzapw/OmniRoute/pull/3420) — thanks @herjarsa)
+- **feat(connections):** connection pagination, health filter, batch-delete confirmation, and custom banned keywords — the provider connections table is now paginated; a health-state filter lets operators show only healthy/degraded/failed connections; multi-select + confirm dialog for bulk deletes; per-connection keyword denylist for content safety. ([#3454](https://github.com/diegosouzapw/OmniRoute/pull/3454) — thanks @sdfsdfw2)
+- **feat(settings):** Endpoint Token Saver visibility toggle — operators can now show or hide the Token Saver widget on the endpoint page from Settings → Appearance. ([#3461](https://github.com/diegosouzapw/OmniRoute/pull/3461) — thanks @rdself)
+- **feat(catalog):** model catalog name feature flag — a new feature flag controls whether the catalog exposes provider-prefixed model names, letting deployments opt into the legacy bare-name format for downstream tooling compatibility. ([#3464](https://github.com/diegosouzapw/OmniRoute/pull/3464) — thanks @rdself)
### 🔧 Bug Fixes
-- **fix(catalog):** imported/custom models on no-auth providers (e.g. The Old LLM) now appear in `GET /api/v1/models` and the Playground model dropdown. The custom-model eligibility gate required a DB connection row, which no-auth providers never have, so every imported model for them was silently dropped (built-in models were unaffected). The gate now applies the same no-auth bypass used elsewhere. ([#3200](https://github.com/diegosouzapw/OmniRoute/issues/3200) — thanks @tjengbudi, @a2belugin)
-- **fix(claude):** Claude Code → `claude-opus-4-8` tool calls no longer break with `tool call could not be parsed (retry also failed)` — OmniRoute no longer force-injects `interleaved-thinking` / `advanced-tool-use` / `effort` beta flags the client never negotiated. When the client sends its own `anthropic-beta` header, those betas are only emitted if the client requested them; opaque clients (OAuth identity cloak) keep the full set unchanged. ([#3415](https://github.com/diegosouzapw/OmniRoute/issues/3415) — thanks @Forcerecon)
-- **fix(translator):** Vertex AI tool calls no longer fail with `400 Unknown name "id" at contents[].parts[].function_call` — the OpenAI-style `id` field is now stripped from `functionCall`/`functionResponse` parts when the routed provider is `vertex`/`vertex-partner`. The public Gemini API still receives `id` (required for Gemini 3+ signature matching). ([#3440](https://github.com/diegosouzapw/OmniRoute/issues/3440) — thanks @nullbytef0x)
+- **fix(translator):** Vertex AI tool calls no longer fail with `400 Unknown name "id"` — the OpenAI-style `id` field is stripped from `functionCall`/`functionResponse` parts for `vertex`/`vertex-partner`; the public Gemini API still receives `id` as required for Gemini 3+ signature matching. ([#3457](https://github.com/diegosouzapw/OmniRoute/pull/3457) — thanks @nullbytef0x / @diegosouzapw)
+- **fix(claude):** Claude Code `claude-opus-4-8` tool calls no longer break with `tool call could not be parsed` — OmniRoute no longer force-injects `interleaved-thinking` / `advanced-tool-use` / `effort` beta flags the client never negotiated; clients sending their own `anthropic-beta` header control those betas themselves. ([#3458](https://github.com/diegosouzapw/OmniRoute/pull/3458) — thanks @Forcerecon / @diegosouzapw)
+- **fix(catalog):** imported/custom models on no-auth providers (e.g. The Old LLM) now appear in `GET /api/v1/models` and the Playground model selector — the eligibility gate required a DB connection row which no-auth providers never have, silently dropping every imported model for them. ([#3463](https://github.com/diegosouzapw/OmniRoute/pull/3463) — thanks @tjengbudi / @diegosouzapw)
+- **fix(browser):** optional `cloakbrowser` import no longer causes bundle errors when the package is absent — the import is now wrapped in a dynamic require so the build succeeds on environments that don't install the optional dep. ([#3460](https://github.com/diegosouzapw/OmniRoute/pull/3460) — thanks @rdself)
+- **fix(claude-web):** claude-web session handling cleanup — corrects an edge case where session cookies were not properly refreshed after a Turnstile challenge, and removes stale wrapper code left over from the provider split. ([#3449](https://github.com/diegosouzapw/OmniRoute/pull/3449) — thanks @androw)
+- **fix(analytics):** SQL named params are now scoped per query context — a shared params object was being mutated across concurrent analytics queries, causing `SQLITE_MISUSE: named parameter not found` errors under load. ([#3447](https://github.com/diegosouzapw/OmniRoute/pull/3447) — thanks @ReqX)
+- **fix(command-code):** chat endpoint reverted to `/alpha/generate` and model-sync discovery fixed — a prior refactor incorrectly targeted the wrong path, causing Command Code completions to silently 404; model listing now also resolves from the correct discovery endpoint. ([#3432](https://github.com/diegosouzapw/OmniRoute/pull/3432) — thanks @TapZe)
+- **fix(command-code):** CLI version header aligned to current Command Code release — the `X-Command-Code-Version` header value was pinned to a stale version string, causing upstream version-gated features to be rejected. ([#3462](https://github.com/diegosouzapw/OmniRoute/pull/3462) — thanks @hevener10)
+- **fix(sse):** provider IDs are normalized to strings before lookup — numeric provider IDs (e.g. from legacy DB rows) caused `undefined` lookups in the executor registry; all IDs are now coerced to string at the SSE entry point. ([#3427](https://github.com/diegosouzapw/OmniRoute/pull/3427) — thanks @disafronov)
+- **fix(stream):** textual tool-call slicing index mismatch resolved and `containsTextualToolCallMarker` deduplicated — two related bugs in the rolling-buffer parser caused partial tool-call chunks to be emitted twice or sliced from the wrong offset, producing garbled JSON in streamed tool responses. ([#3413](https://github.com/diegosouzapw/OmniRoute/pull/3413) — thanks @Ardem2025)
+- **fix(stream):** OpenAI usage-only chunks (empty `choices: []`) are now passed through instead of being dropped — some providers emit a trailing stats-only chunk after the last content delta; discarding it caused usage counters to be missing in logged responses. ([#3422](https://github.com/diegosouzapw/OmniRoute/pull/3422) — thanks @xz-dev)
+- **fix(translator):** empty-string `reasoning_content` replaced with placeholder on cache miss — `injectEmptyReasoningContentForToolCalls` pre-sets `reasoning_content=""` before the cache lookup; the old guard checked for `undefined`, never firing on miss and leaving `""` in place, which DeepSeek V4+ rejects with a 400. ([#3433](https://github.com/diegosouzapw/OmniRoute/pull/3433) — thanks @ViFigueiredo)
+- **fix(catalog):** combos auto-compute `context_length` for any provider-ID form — the context-length resolution only matched exact-string provider IDs, missing combos declared with a numeric or aliased ID; the lookup now normalizes before matching. ([#3417](https://github.com/diegosouzapw/OmniRoute/pull/3417) — thanks @herjarsa)
+- **fix(healthcheck):** container bridge network IP probed correctly — the healthcheck script was hard-coded to `localhost` which resolves to IPv6 `::1` inside some container runtimes; it now queries the bridge gateway IP so the probe succeeds on both bridge and host networking modes. ([#3434](https://github.com/diegosouzapw/OmniRoute/pull/3434) — thanks @naimo84)
+- **fix(publish):** onnxruntime CUDA binary removed from npm tarball — the native `.node` binary exceeded npm's 413 payload limit and was never needed at runtime (OmniRoute uses the CPU build); the pack policy now excludes the CUDA artifact. ([#3437](https://github.com/diegosouzapw/OmniRoute/pull/3437) — thanks @herjarsa)
+
+### 📝 Maintenance
+
+- **docs:** critical documentation gaps closed — new guides for ACP protocol, router strategies, compression, REST API reference, and updated AUTO-COMBO deep-dive; getting-started section added with Quick Start, Providers, Free Tiers, Auto-Combo, and Troubleshooting pages. ([#3438](https://github.com/diegosouzapw/OmniRoute/pull/3438) — thanks @oyi77)
+- **docs(opencode-plugin):** plugin README rewritten to lead with the why — positions the plugin as the recommended integration path over the legacy `@omniroute/opencode-provider` package, with migration guidance. ([#3418](https://github.com/diegosouzapw/OmniRoute/pull/3418) — thanks @herjarsa)
+- **docs(env):** `COMMAND_CODE_VERSION` override documented — environment variable added to `.env.example` and reference docs so operators can pin the CLI version header without a code change. ([#3462](https://github.com/diegosouzapw/OmniRoute/pull/3462) — thanks @hevener10)
+- **test(auto-combo):** same-provider connection identity assertion added — regression test covering the case where two connections for the same provider share an account ID, verifying the combo engine selects the correct one. ([#3378](https://github.com/diegosouzapw/OmniRoute/pull/3378) — thanks @oyi77)
+- **deps:** electron upgraded to 42.3.3; electron-builder to 26.15.2; electron-updater to 6.8.9; 4 development-group and 10 production-group packages bumped via Dependabot. ([#3441](https://github.com/diegosouzapw/OmniRoute/pull/3441) / [#3442](https://github.com/diegosouzapw/OmniRoute/pull/3442) / [#3443](https://github.com/diegosouzapw/OmniRoute/pull/3443) / [#3444](https://github.com/diegosouzapw/OmniRoute/pull/3444) / [#3445](https://github.com/diegosouzapw/OmniRoute/pull/3445) — thanks @diegosouzapw)
+- **chore(release):** v3.8.17 development cycle opened from `main`. (thanks @diegosouzapw)
---
diff --git a/docs/i18n/ar/CHANGELOG.md b/docs/i18n/ar/CHANGELOG.md
index 8005f53d0b..21723c9f1e 100644
--- a/docs/i18n/ar/CHANGELOG.md
+++ b/docs/i18n/ar/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/az/CHANGELOG.md b/docs/i18n/az/CHANGELOG.md
index d88994deea..b0929c2a7a 100644
--- a/docs/i18n/az/CHANGELOG.md
+++ b/docs/i18n/az/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/bg/CHANGELOG.md b/docs/i18n/bg/CHANGELOG.md
index d88994deea..b0929c2a7a 100644
--- a/docs/i18n/bg/CHANGELOG.md
+++ b/docs/i18n/bg/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/bn/CHANGELOG.md b/docs/i18n/bn/CHANGELOG.md
index 6031b84596..941bbdf940 100644
--- a/docs/i18n/bn/CHANGELOG.md
+++ b/docs/i18n/bn/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/cs/CHANGELOG.md b/docs/i18n/cs/CHANGELOG.md
index b517e22910..7b75b4dd34 100644
--- a/docs/i18n/cs/CHANGELOG.md
+++ b/docs/i18n/cs/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/da/CHANGELOG.md b/docs/i18n/da/CHANGELOG.md
index fa933bfaf5..600eec4d07 100644
--- a/docs/i18n/da/CHANGELOG.md
+++ b/docs/i18n/da/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/de/CHANGELOG.md b/docs/i18n/de/CHANGELOG.md
index 7af21d9320..1cc361172f 100644
--- a/docs/i18n/de/CHANGELOG.md
+++ b/docs/i18n/de/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/es/CHANGELOG.md b/docs/i18n/es/CHANGELOG.md
index fe33b3d1fb..59078f0a1e 100644
--- a/docs/i18n/es/CHANGELOG.md
+++ b/docs/i18n/es/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/fa/CHANGELOG.md b/docs/i18n/fa/CHANGELOG.md
index f4300a689e..719693c9c3 100644
--- a/docs/i18n/fa/CHANGELOG.md
+++ b/docs/i18n/fa/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/fi/CHANGELOG.md b/docs/i18n/fi/CHANGELOG.md
index 1da2e62219..88c2a4d387 100644
--- a/docs/i18n/fi/CHANGELOG.md
+++ b/docs/i18n/fi/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/fr/CHANGELOG.md b/docs/i18n/fr/CHANGELOG.md
index e70614a956..1ada2f1d10 100644
--- a/docs/i18n/fr/CHANGELOG.md
+++ b/docs/i18n/fr/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/gu/CHANGELOG.md b/docs/i18n/gu/CHANGELOG.md
index e78977b220..b13d36f6ff 100644
--- a/docs/i18n/gu/CHANGELOG.md
+++ b/docs/i18n/gu/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/he/CHANGELOG.md b/docs/i18n/he/CHANGELOG.md
index 688a8815b7..a2d2b6b24d 100644
--- a/docs/i18n/he/CHANGELOG.md
+++ b/docs/i18n/he/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/hi/CHANGELOG.md b/docs/i18n/hi/CHANGELOG.md
index c31f38a34b..0b198454cb 100644
--- a/docs/i18n/hi/CHANGELOG.md
+++ b/docs/i18n/hi/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/hu/CHANGELOG.md b/docs/i18n/hu/CHANGELOG.md
index effa00c9b0..219085f2c2 100644
--- a/docs/i18n/hu/CHANGELOG.md
+++ b/docs/i18n/hu/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/id/CHANGELOG.md b/docs/i18n/id/CHANGELOG.md
index 65a007cd42..680d47cd79 100644
--- a/docs/i18n/id/CHANGELOG.md
+++ b/docs/i18n/id/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/in/CHANGELOG.md b/docs/i18n/in/CHANGELOG.md
index 3115f0b791..c311c83ce8 100644
--- a/docs/i18n/in/CHANGELOG.md
+++ b/docs/i18n/in/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/it/CHANGELOG.md b/docs/i18n/it/CHANGELOG.md
index 5ab77c3d6c..783b6dc27f 100644
--- a/docs/i18n/it/CHANGELOG.md
+++ b/docs/i18n/it/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/ja/CHANGELOG.md b/docs/i18n/ja/CHANGELOG.md
index 451cd03af3..6344f7da50 100644
--- a/docs/i18n/ja/CHANGELOG.md
+++ b/docs/i18n/ja/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/ko/CHANGELOG.md b/docs/i18n/ko/CHANGELOG.md
index 734d748521..bef2f7c147 100644
--- a/docs/i18n/ko/CHANGELOG.md
+++ b/docs/i18n/ko/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/mr/CHANGELOG.md b/docs/i18n/mr/CHANGELOG.md
index acb1743f04..7fef07bda2 100644
--- a/docs/i18n/mr/CHANGELOG.md
+++ b/docs/i18n/mr/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/ms/CHANGELOG.md b/docs/i18n/ms/CHANGELOG.md
index 9d7c117e7e..fd375e1716 100644
--- a/docs/i18n/ms/CHANGELOG.md
+++ b/docs/i18n/ms/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/nl/CHANGELOG.md b/docs/i18n/nl/CHANGELOG.md
index 3f221f2d9a..4163d6a9ed 100644
--- a/docs/i18n/nl/CHANGELOG.md
+++ b/docs/i18n/nl/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/no/CHANGELOG.md b/docs/i18n/no/CHANGELOG.md
index 0d45489194..0d08bedc70 100644
--- a/docs/i18n/no/CHANGELOG.md
+++ b/docs/i18n/no/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/phi/CHANGELOG.md b/docs/i18n/phi/CHANGELOG.md
index 5758742e25..9e16e59b56 100644
--- a/docs/i18n/phi/CHANGELOG.md
+++ b/docs/i18n/phi/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/pl/CHANGELOG.md b/docs/i18n/pl/CHANGELOG.md
index f18d903319..43214b9447 100644
--- a/docs/i18n/pl/CHANGELOG.md
+++ b/docs/i18n/pl/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/pt-BR/CHANGELOG.md b/docs/i18n/pt-BR/CHANGELOG.md
index 0b269f0c5e..fa524b0592 100644
--- a/docs/i18n/pt-BR/CHANGELOG.md
+++ b/docs/i18n/pt-BR/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/pt/CHANGELOG.md b/docs/i18n/pt/CHANGELOG.md
index e838a9fd0d..75ce9c4399 100644
--- a/docs/i18n/pt/CHANGELOG.md
+++ b/docs/i18n/pt/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/ro/CHANGELOG.md b/docs/i18n/ro/CHANGELOG.md
index 501137966a..141d2ad5e2 100644
--- a/docs/i18n/ro/CHANGELOG.md
+++ b/docs/i18n/ro/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/ru/CHANGELOG.md b/docs/i18n/ru/CHANGELOG.md
index 5ee8d005de..d90ad176f0 100644
--- a/docs/i18n/ru/CHANGELOG.md
+++ b/docs/i18n/ru/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/sk/CHANGELOG.md b/docs/i18n/sk/CHANGELOG.md
index 7b762a3a04..2ab135cc0d 100644
--- a/docs/i18n/sk/CHANGELOG.md
+++ b/docs/i18n/sk/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/sv/CHANGELOG.md b/docs/i18n/sv/CHANGELOG.md
index 73f7106956..258ad96136 100644
--- a/docs/i18n/sv/CHANGELOG.md
+++ b/docs/i18n/sv/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/sw/CHANGELOG.md b/docs/i18n/sw/CHANGELOG.md
index b7c69b5e8b..01639770f9 100644
--- a/docs/i18n/sw/CHANGELOG.md
+++ b/docs/i18n/sw/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/ta/CHANGELOG.md b/docs/i18n/ta/CHANGELOG.md
index 7f50f35a79..fc49d236ca 100644
--- a/docs/i18n/ta/CHANGELOG.md
+++ b/docs/i18n/ta/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/te/CHANGELOG.md b/docs/i18n/te/CHANGELOG.md
index 7c15597e16..cd373aa276 100644
--- a/docs/i18n/te/CHANGELOG.md
+++ b/docs/i18n/te/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/th/CHANGELOG.md b/docs/i18n/th/CHANGELOG.md
index c93fd7992b..e4ca90d912 100644
--- a/docs/i18n/th/CHANGELOG.md
+++ b/docs/i18n/th/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/tr/CHANGELOG.md b/docs/i18n/tr/CHANGELOG.md
index f0383611d8..04c3a437ec 100644
--- a/docs/i18n/tr/CHANGELOG.md
+++ b/docs/i18n/tr/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/uk-UA/CHANGELOG.md b/docs/i18n/uk-UA/CHANGELOG.md
index b76cc37eac..2cb0cd2373 100644
--- a/docs/i18n/uk-UA/CHANGELOG.md
+++ b/docs/i18n/uk-UA/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/ur/CHANGELOG.md b/docs/i18n/ur/CHANGELOG.md
index 9591c347d5..c89f6663f3 100644
--- a/docs/i18n/ur/CHANGELOG.md
+++ b/docs/i18n/ur/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/vi/CHANGELOG.md b/docs/i18n/vi/CHANGELOG.md
index fdd30ba0e6..c43140622a 100644
--- a/docs/i18n/vi/CHANGELOG.md
+++ b/docs/i18n/vi/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/docs/i18n/zh-CN/CHANGELOG.md b/docs/i18n/zh-CN/CHANGELOG.md
index 7ffd2cbd8f..429403523a 100644
--- a/docs/i18n/zh-CN/CHANGELOG.md
+++ b/docs/i18n/zh-CN/CHANGELOG.md
@@ -4,6 +4,12 @@
---
+## [3.8.17] — Unreleased
+
+_Development cycle in progress._
+
+---
+
## [3.8.16] — Unreleased
_Development cycle in progress._
diff --git a/open-sse/executors/lmarena.ts b/open-sse/executors/lmarena.ts
index de4c18c3d0..01f2a58a50 100644
--- a/open-sse/executors/lmarena.ts
+++ b/open-sse/executors/lmarena.ts
@@ -127,30 +127,32 @@ export class LMArenaExecutor extends BaseExecutor {
};
}
- async execute(input: ExecuteInput): Promise<Response> {
+ async execute(input: ExecuteInput) {
const { model, body, stream, credentials, signal, log } = input;
- const cookie = readLMArenaCookie(credentials);
- if (!cookie) {
- return new Response(
- JSON.stringify({
- error: {
- message: "LMArena requires a session cookie. Please provide cookie in credentials.",
- type: "authentication_error",
- code: "missing_cookie",
- },
- }),
- {
- status: 401,
- headers: { "Content-Type": "application/json" },
- }
- );
- }
-
const url = this.buildUrl(model, credentials);
const headers = this.buildHeaders(model, credentials, body);
const transformedBody = this.transformRequest(body, model);
+ const cookie = readLMArenaCookie(credentials);
+ if (!cookie) {
+ return {
+ response: new Response(
+ JSON.stringify({
+ error: {
+ message: "LMArena requires a session cookie. Please provide cookie in credentials.",
+ type: "authentication_error",
+ code: "missing_cookie",
+ },
+ }),
+ { status: 401, headers: { "Content-Type": "application/json" } }
+ ),
+ url,
+ headers,
+ transformedBody,
+ };
+ }
+
log?.info?.("LMArenaExecutor", `Executing request for model: ${model}`);
try {
@@ -171,43 +173,47 @@ export class LMArenaExecutor extends BaseExecutor {
errorMessage = errorText || errorMessage;
}
- return new Response(
- JSON.stringify({
- error: {
- message: sanitizeErrorMessage(errorMessage),
- type: "api_error",
- code: String(response.status),
- },
- }),
- {
- status: response.status,
- headers: { "Content-Type": "application/json" },
- }
- );
+ return {
+ response: new Response(
+ JSON.stringify({
+ error: {
+ message: sanitizeErrorMessage(errorMessage),
+ type: "api_error",
+ code: String(response.status),
+ },
+ }),
+ { status: response.status, headers: { "Content-Type": "application/json" } }
+ ),
+ url,
+ headers,
+ transformedBody,
+ };
}
- if (stream) {
- return this.handleStreamingResponse(response, model, log);
- } else {
- return this.handleNonStreamingResponse(response, model, log);
- }
+ const upstreamResponse = stream
+ ? await this.handleStreamingResponse(response, model, log)
+ : await this.handleNonStreamingResponse(response, model, log);
+
+ return { response: upstreamResponse, url, headers, transformedBody };
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
log?.error?.("LMArenaExecutor", `Request failed: ${message}`);
- return new Response(
- JSON.stringify({
- error: {
- message: sanitizeErrorMessage(message),
- type: "network_error",
- code: "request_failed",
- },
- }),
- {
- status: 502,
- headers: { "Content-Type": "application/json" },
- }
- );
+ return {
+ response: new Response(
+ JSON.stringify({
+ error: {
+ message: sanitizeErrorMessage(message),
+ type: "network_error",
+ code: "request_failed",
+ },
+ }),
+ { status: 502, headers: { "Content-Type": "application/json" } }
+ ),
+ url,
+ headers,
+ transformedBody,
+ };
}
}
diff --git a/open-sse/translator/index.ts b/open-sse/translator/index.ts
index b4928af32e..4bb82b6c1c 100644
--- a/open-sse/translator/index.ts
+++ b/open-sse/translator/index.ts
@@ -325,7 +325,14 @@ export function translateRequest(
canReplayReasoningOnly &&
hasReasoningContentField(msg);
- if (!hasToolCalls && !hasToolUseBlocks && !shouldReplayReasoningOnly) continue;
+ if (!hasToolCalls && !hasToolUseBlocks && !shouldReplayReasoningOnly) {
+ // Strip empty reasoning_content on non-tool-call messages; an empty
+ // string has no meaningful value to send and may confuse some upstreams.
+ if (msg.reasoning_content === "") {
+ delete msg.reasoning_content;
+ }
+ continue;
+ }
if (hasToolUseBlocks) {
// ── Claude-format message ──
diff --git a/tests/unit/lmarena-provider.test.ts b/tests/unit/lmarena-provider.test.ts
index 72982bfda7..a4834e6566 100644
--- a/tests/unit/lmarena-provider.test.ts
+++ b/tests/unit/lmarena-provider.test.ts
@@ -204,47 +204,47 @@ describe("LMArena Executor", () => {
it("returns 401 when cookie is missing", async () => {
const executor = new LMArenaExecutor();
-
- const response = await executor.execute({
+
+ const result = await executor.execute({
model: "gpt-4",
body: { messages: [{ role: "user", content: "Hello" }] },
credentials: {},
signal: new AbortController().signal,
log: console
});
-
- assert.equal(response.status, 401, "Should return 401 for missing cookie");
- const errorBody = await response.json();
+
+ assert.equal(result.response.status, 401, "Should return 401 for missing cookie");
+ const errorBody = await result.response.json();
assert.ok(errorBody.error, "Should have error object");
assert.ok(errorBody.error.message.includes("cookie"), "Error should mention cookie");
});
it("handles streaming response correctly", async () => {
const executor = new LMArenaExecutor();
-
+
const mockSSE = [
'data: a0:{"text":"Hello"}\n\n',
'data: a0:{"text":", world!"}\n\n',
'data: ad:{}\n\n'
].join('');
-
+
const originalFetch = global.fetch;
global.fetch = async () => new Response(mockSSE, {
status: 200,
headers: { "Content-Type": "text/event-stream" }
});
-
+
try {
- const response = await executor.execute({
+ const result = await executor.execute({
model: "gpt-4",
body: { messages: [{ role: "user", content: "Hello" }], stream: true },
credentials: { cookie: "session=test" },
signal: new AbortController().signal,
log: console
});
-
- assert.equal(response.status, 200, "Should return 200 for successful streaming");
- assert.ok(response.body, "Should have response body for streaming");
+
+ assert.equal(result.response.status, 200, "Should return 200 for successful streaming");
+ assert.ok(result.response.body, "Should have response body for streaming");
} finally {
global.fetch = originalFetch;
}
@@ -252,7 +252,7 @@ describe("LMArena Executor", () => {
it("handles error response from LMArena API", async () => {
const executor = new LMArenaExecutor();
-
+
const originalFetch = global.fetch;
global.fetch = async () => new Response(JSON.stringify({
error: { message: "Rate limit exceeded" }
@@ -260,18 +260,18 @@ describe("LMArena Executor", () => {
status: 429,
headers: { "Content-Type": "application/json" }
});
-
+
try {
- const response = await executor.execute({
+ const result = await executor.execute({
model: "gpt-4",
body: { messages: [{ role: "user", content: "Hello" }] },
credentials: { cookie: "session=test" },
signal: new AbortController().signal,
log: console
});
-
- assert.equal(response.status, 429, "Should return 429 for rate limit");
- const errorBody = await response.json();
+
+ assert.equal(result.response.status, 429, "Should return 429 for rate limit");
+ const errorBody = await result.response.json();
assert.ok(errorBody.error, "Should have error object");
} finally {
global.fetch = originalFetch;
diff --git a/tests/unit/tool-request-sanitization.test.ts b/tests/unit/tool-request-sanitization.test.ts
index ef0ed5cc8b..f16807c276 100644
--- a/tests/unit/tool-request-sanitization.test.ts
+++ b/tests/unit/tool-request-sanitization.test.ts
@@ -9,6 +9,9 @@ const {
injectEmptyReasoningContentForToolCalls,
} = await import("../../open-sse/translator/helpers/schemaCoercion.ts");
const { translateRequest } = await import("../../open-sse/translator/index.ts");
+const { NON_ANTHROPIC_THINKING_PLACEHOLDER } = await import(
+ "../../open-sse/translator/helpers/claudeHelper.ts"
+);
const { FORMATS } = await import("../../open-sse/translator/formats.ts");
const { clearModelsDevCapabilities, saveModelsDevCapabilities } =
await import("../../src/lib/modelsDevSync.ts");
@@ -228,6 +231,6 @@ test("translateRequest injects reasoning_content for DeepSeek assistant tool cal
"deepseek"
);
- assert.equal(translated.messages[1].reasoning_content, "");
+ assert.equal(translated.messages[1].reasoning_content, NON_ANTHROPIC_THINKING_PLACEHOLDER);
clearModelsDevCapabilities();
});