feat: add reasoning effort tiers for Opus 4.5 and xhigh for Opus 4.6 (#1248)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
jnjpng
2026-03-03 16:40:57 -08:00
committed by GitHub
parent 0c5c766721
commit 5aea65975c
2 changed files with 77 additions and 1 deletions

View File

@@ -113,12 +113,32 @@ describe("getReasoningTierOptionsForHandle", () => {
"low",
"medium",
"high",
"xhigh",
]);
expect(options.map((option) => option.modelId)).toEqual([
"opus-4.6-no-reasoning",
"opus-4.6-low",
"opus-4.6-medium",
"opus",
"opus-4.6-xhigh",
]);
});
test("returns reasoning options for anthropic opus 4.5", () => {
const options = getReasoningTierOptionsForHandle(
"anthropic/claude-opus-4-5-20251101",
);
expect(options.map((option) => option.effort)).toEqual([
"none",
"low",
"medium",
"high",
]);
expect(options.map((option) => option.modelId)).toEqual([
"opus-4.5-no-reasoning",
"opus-4.5-low",
"opus-4.5-medium",
"opus-4.5",
]);
});