mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-26 17:12:27 +03:00
Merged via merge-train (release/v3.8.50, batch1 2026-08-20) — static gates (typecheck/file-size/complexity/cognitive/changelog) green on the combined tree; test:unit reds observed in the boarded run were verified pre-existing on the pure release tip (unrelated flake), not caused by this PR. Thanks for the contribution!
25 lines
792 B
TypeScript
25 lines
792 B
TypeScript
import assert from "node:assert/strict";
|
|
import test from "node:test";
|
|
|
|
import { sanitizeReasoningEffortForProvider } from "../../open-sse/executors/base/reasoningEffort.ts";
|
|
|
|
test("sensenova/deepseek-v4-flash maps max to its explicit xhigh ceiling", () => {
|
|
const result = sanitizeReasoningEffortForProvider(
|
|
{ reasoning_effort: "max", messages: [] },
|
|
"sensenova",
|
|
"deepseek-v4-flash"
|
|
);
|
|
|
|
assert.equal((result as Record<string, unknown>).reasoning_effort, "xhigh");
|
|
});
|
|
|
|
test("sensenova models without an explicit effort list keep max unchanged", () => {
|
|
const result = sanitizeReasoningEffortForProvider(
|
|
{ reasoning_effort: "max", messages: [] },
|
|
"sensenova",
|
|
"glm-5.2"
|
|
);
|
|
|
|
assert.equal((result as Record<string, unknown>).reasoning_effort, "max");
|
|
});
|