@kenkaiiii/gg-ai 5.22.6 → 5.23.1

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 CHANGED
@@ -40,7 +40,7 @@ Tool parameters are Zod schemas. Converted to JSON Schema at the provider bounda
40
40
 
41
41
  | Provider | Models | Notes |
42
42
  |---|---|---|
43
- | `anthropic` | Claude Opus 4.8, Sonnet 5, Haiku 4.5 | Extended thinking, prompt caching, server-side compaction |
43
+ | `anthropic` | Claude Opus 5, Sonnet 5, Haiku 4.5 | Extended thinking, prompt caching, server-side compaction |
44
44
  | `openai` | GPT-4.1, o3, o4-mini | Supports OAuth (codex endpoint) and API keys |
45
45
  | `glm` | GLM-5.1, GLM-4.7 | Z.AI platform, OpenAI-compatible |
46
46
  | `moonshot` | Kimi K3, Kimi K2.7 Code | Moonshot platform, OpenAI-compatible |
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 {