@prestyj/ai 4.5.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -684,12 +684,12 @@ function toAnthropicToolChoice(choice) {
|
|
|
684
684
|
return { type: "tool", name: choice.name };
|
|
685
685
|
}
|
|
686
686
|
function isAdaptiveThinkingModel(model) {
|
|
687
|
-
return /opus-4[-.]8|opus-4[-.]7|opus-4[-.]6|sonnet-4[-.]6/.test(model);
|
|
687
|
+
return /fable-5|opus-4[-.]8|opus-4[-.]7|opus-4[-.]6|sonnet-4[-.]6/.test(model);
|
|
688
688
|
}
|
|
689
689
|
function toAnthropicThinking(level, maxTokens, model) {
|
|
690
690
|
if (isAdaptiveThinkingModel(model)) {
|
|
691
691
|
let effort = level;
|
|
692
|
-
if (effort === "xhigh" && !/opus-4-8|opus-4-7/.test(model)) {
|
|
692
|
+
if (effort === "xhigh" && !/opus-4-8|opus-4-7|fable-5/.test(model)) {
|
|
693
693
|
effort = "high";
|
|
694
694
|
}
|
|
695
695
|
return {
|