Resolved conflicts taking origin/master (v0.5.55) as canonical, with local features re-applied: - runtime log level (LOG_LEVEL env + dashboard Settings → Logging, applied immediately and persisted across restarts) - free/noAuth provider enable/disable toggle via providerStrategies.enabled - parallel model testing (Test All Models / Test Selected Keys)
32 lines
1.4 KiB
JavaScript
32 lines
1.4 KiB
JavaScript
import { describe, it, expect } from "vitest";
|
|
import { getThinkingLevels } from "../../open-sse/providers/thinkingLevels.js";
|
|
|
|
describe("getThinkingLevels", () => {
|
|
it.each([
|
|
["gpt-5.6-sol", ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]],
|
|
["gpt-5.6-terra", ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]],
|
|
["gpt-5.6-luna", ["none", "minimal", "low", "medium", "high", "xhigh", "max"]],
|
|
["gpt-5.6-sol-review", ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]],
|
|
["gpt-5.6-terra-review", ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]],
|
|
["gpt-5.6-luna-review", ["none", "minimal", "low", "medium", "high", "xhigh", "max"]],
|
|
])("returns Codex levels for %s", (model, expected) => {
|
|
expect(getThinkingLevels("codex", model)).toEqual(expected);
|
|
});
|
|
|
|
it("does not expose Codex-only GPT-5.6 overrides on Kiro", () => {
|
|
expect(getThinkingLevels("kiro", "gpt-5.6-sol")).toEqual([
|
|
"none", "minimal", "low", "medium", "high", "xhigh",
|
|
]);
|
|
});
|
|
|
|
it("does not add max for other codex models", () => {
|
|
const levels = getThinkingLevels("codex", "gpt-5.3-codex");
|
|
expect(levels).toEqual(["low", "medium", "high", "xhigh"]);
|
|
});
|
|
|
|
it("does not add max for other Codex models", () => {
|
|
const levels = getThinkingLevels("codex", "gpt-5.5");
|
|
expect(levels || []).not.toContain("max");
|
|
});
|
|
});
|