fix(providers): bump qwen-web SPA version header from 0.2.66 to 0.2.81 (#9304)

Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com>
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-08-07 18:08:52 -03:00
committed by GitHub
parent 85e518b7f4
commit d92e984fec
3 changed files with 4 additions and 3 deletions

View File

@@ -0,0 +1 @@
- fix(providers): bump qwen-web SPA version header from 0.2.66 to 0.2.81 (#9304)

View File

@@ -47,8 +47,8 @@ const BX_UMIDTOKEN_FALLBACK = "T2gA0000000000000000000000000000000000000000";
// header the upstream returns HTTP 200 with `{"success":false,"data":{"code":"Bad_Request"}}`
// for every completion request, even with a valid session. The version string is
// the SPA build identifier shipped in the React client's `version` request header.
// Pinned from a live capture (2026-07); bump if Qwen ships a breaking change.
const QWEN_SPA_VERSION = "0.2.66";
// Pinned from a live capture (2026-08); bump if Qwen ships a breaking change.
const QWEN_SPA_VERSION = "0.2.81";
const MODEL_ALIASES: Record<string, string> = {
// Legacy OmniRoute ids → current upstream catalog (GET /api/models).

View File

@@ -180,7 +180,7 @@ describe("QwenWebExecutor (v2 migration)", () => {
const completionCall = calls.find((call) => call.url.includes("/api/v2/chat/completions"));
assert.ok(completionCall, "chat/completions call must have been made");
const headers = completionCall!.init.headers as Record<string, string>;
assert.equal(headers.version, "0.2.66", "SPA build version header present");
assert.equal(headers.version, "0.2.81", "SPA build version header present");
});
it("maps the thinking phase to reasoning_content, not the answer content", async () => {