@kenkaiiii/gg-core 5.23.0 → 5.23.2

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 CHANGED
@@ -1671,19 +1671,6 @@ var MODELS = [
1671
1671
  costTier: "high",
1672
1672
  maxThinkingLevel: "max"
1673
1673
  },
1674
- {
1675
- // Legacy — superseded by Claude Opus 5 (same $5/$25 pricing) on 2026-07-24.
1676
- id: "claude-opus-4-8",
1677
- name: "Claude Opus 4.8",
1678
- provider: "anthropic",
1679
- contextWindow: 1e6,
1680
- maxOutputTokens: 128e3,
1681
- supportsThinking: true,
1682
- supportsImages: true,
1683
- supportsVideo: false,
1684
- costTier: "high",
1685
- maxThinkingLevel: "max"
1686
- },
1687
1674
  {
1688
1675
  id: "claude-sonnet-5",
1689
1676
  name: "Claude Sonnet 5",
@@ -2141,7 +2128,7 @@ var OPENAI_GPT_56_THINKING_LEVELS = [
2141
2128
  ];
2142
2129
  var SAKANA_THINKING_LEVELS = ["high", "xhigh"];
2143
2130
  var XAI_THINKING_LEVELS = ["low", "medium", "high"];
2144
- var ANTHROPIC_OPUS_48_47_THINKING_LEVELS = [
2131
+ var ANTHROPIC_XHIGH_THINKING_LEVELS = [
2145
2132
  "low",
2146
2133
  "medium",
2147
2134
  "high",
@@ -2167,16 +2154,16 @@ function isXaiModel(provider) {
2167
2154
  function isMoonshotK3Model(provider, model) {
2168
2155
  return provider === "moonshot" && model === "kimi-k3";
2169
2156
  }
2170
- function isAnthropicOpus48Or47Model(provider, model) {
2171
- return provider === "anthropic" && /opus-4-8|opus-4-7/.test(model);
2157
+ function isAnthropicXhighModel(provider, model) {
2158
+ return provider === "anthropic" && /opus-5|opus-4-8|opus-4-7/.test(model);
2172
2159
  }
2173
2160
  function isAnthropicAdaptiveModel(provider, model) {
2174
- return provider === "anthropic" && /opus-4-8|opus-4-7|opus-4-6|sonnet-5|fable-5|mythos-5/.test(model);
2161
+ return provider === "anthropic" && /opus-5|opus-4-8|opus-4-7|opus-4-6|sonnet-5|fable-5|mythos-5/.test(model);
2175
2162
  }
2176
2163
  function getSupportedThinkingLevels(provider, model) {
2177
2164
  const maxLevel = getMaxThinkingLevel(model);
2178
2165
  if (isAnthropicAdaptiveModel(provider, model)) {
2179
- const levels2 = isAnthropicOpus48Or47Model(provider, model) ? ANTHROPIC_OPUS_48_47_THINKING_LEVELS : ANTHROPIC_ADAPTIVE_THINKING_LEVELS;
2166
+ const levels2 = isAnthropicXhighModel(provider, model) ? ANTHROPIC_XHIGH_THINKING_LEVELS : ANTHROPIC_ADAPTIVE_THINKING_LEVELS;
2180
2167
  const maxIndex2 = levels2.indexOf(maxLevel);
2181
2168
  if (maxIndex2 === -1) return ["low", "medium", "high"];
2182
2169
  return levels2.slice(0, maxIndex2 + 1);