feat(ai): add max thinking level
This commit is contained in:
@@ -78,6 +78,26 @@ describe("AgentSession model and extension characterization", () => {
|
||||
expect(harness.session.cycleThinkingLevel()).toBeUndefined();
|
||||
});
|
||||
|
||||
it("cycles xhigh before max when both are supported", async () => {
|
||||
const harness = await createHarness({ models: [{ id: "faux-1", reasoning: true }] });
|
||||
harnesses.push(harness);
|
||||
harness.getModel().thinkingLevelMap = { xhigh: "xhigh", max: "max" };
|
||||
|
||||
expect(harness.session.getAvailableThinkingLevels()).toEqual([
|
||||
"off",
|
||||
"minimal",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max",
|
||||
]);
|
||||
harness.session.setThinkingLevel("high");
|
||||
expect(harness.session.cycleThinkingLevel()).toBe("xhigh");
|
||||
expect(harness.session.cycleThinkingLevel()).toBe("max");
|
||||
expect(harness.session.cycleThinkingLevel()).toBe("off");
|
||||
});
|
||||
|
||||
it("throws when setModel is called without configured auth", async () => {
|
||||
const harness = await createHarness({
|
||||
models: [
|
||||
|
||||
Reference in New Issue
Block a user