@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.js CHANGED
@@ -885,12 +885,12 @@ function toAnthropicToolChoice(choice) {
885
885
  return { type: "tool", name: choice.name };
886
886
  }
887
887
  function isAdaptiveThinkingModel(model) {
888
- return /opus-4[-.]8|opus-4[-.]7|opus-4[-.]6|sonnet-5|fable-5|mythos-5/.test(model);
888
+ return /opus-5|opus-4[-.]8|opus-4[-.]7|opus-4[-.]6|sonnet-5|fable-5|mythos-5/.test(model);
889
889
  }
890
890
  function toAnthropicThinking(level, maxTokens, model) {
891
891
  if (isAdaptiveThinkingModel(model)) {
892
892
  let effort = level;
893
- if (effort === "xhigh" && !/opus-4-8|opus-4-7/.test(model)) {
893
+ if (effort === "xhigh" && !/opus-5|opus-4-8|opus-4-7/.test(model)) {
894
894
  effort = "high";
895
895
  }
896
896
  return {