mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 01:32:22 +03:00
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:
committed by
GitHub
parent
85e518b7f4
commit
d92e984fec
1
changelog.d/fixes/9304-fix.plan.md
Normal file
1
changelog.d/fixes/9304-fix.plan.md
Normal file
@@ -0,0 +1 @@
|
||||
- fix(providers): bump qwen-web SPA version header from 0.2.66 to 0.2.81 (#9304)
|
||||
@@ -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).
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user