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:
@@ -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",
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user