@kenkaiiii/gg-ai 5.22.6 → 5.23.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/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.cjs
CHANGED
|
@@ -945,12 +945,12 @@ function toAnthropicToolChoice(choice) {
|
|
|
945
945
|
return { type: "tool", name: choice.name };
|
|
946
946
|
}
|
|
947
947
|
function isAdaptiveThinkingModel(model) {
|
|
948
|
-
return /opus-4[-.]8|opus-4[-.]7|opus-4[-.]6|sonnet-5|fable-5|mythos-5/.test(model);
|
|
948
|
+
return /opus-5|opus-4[-.]8|opus-4[-.]7|opus-4[-.]6|sonnet-5|fable-5|mythos-5/.test(model);
|
|
949
949
|
}
|
|
950
950
|
function toAnthropicThinking(level, maxTokens, model) {
|
|
951
951
|
if (isAdaptiveThinkingModel(model)) {
|
|
952
952
|
let effort = level;
|
|
953
|
-
if (effort === "xhigh" && !/opus-4-8|opus-4-7/.test(model)) {
|
|
953
|
+
if (effort === "xhigh" && !/opus-5|opus-4-8|opus-4-7/.test(model)) {
|
|
954
954
|
effort = "high";
|
|
955
955
|
}
|
|
956
956
|
return {
|