@kenkaiiii/gg-core 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/dist/{chunk-EM7AJOOC.js → chunk-7OICWYUV.js} +7 -3
- package/dist/{chunk-EM7AJOOC.js.map → chunk-7OICWYUV.js.map} +1 -1
- package/dist/index.cjs +11 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs +6 -2
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.d.cts +2 -2
- package/dist/model-registry.d.ts +2 -2
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1656,8 +1656,12 @@ var MODELS = [
|
|
|
1656
1656
|
// maxThinkingLevel: "max",
|
|
1657
1657
|
// },
|
|
1658
1658
|
{
|
|
1659
|
-
|
|
1660
|
-
|
|
1659
|
+
// Released 2026-07-24 — "For complex agentic coding and enterprise work".
|
|
1660
|
+
// Near-Fable capability at half the price ($5/$25 vs $10/$50). Adaptive
|
|
1661
|
+
// thinking with the full effort ladder (low→max, xhigh included); dateless
|
|
1662
|
+
// ID is the canonical pinned snapshot (post-4.6 naming scheme).
|
|
1663
|
+
id: "claude-opus-5",
|
|
1664
|
+
name: "Claude Opus 5",
|
|
1661
1665
|
provider: "anthropic",
|
|
1662
1666
|
contextWindow: 1e6,
|
|
1663
1667
|
maxOutputTokens: 128e3,
|
|
@@ -2124,7 +2128,7 @@ var OPENAI_GPT_56_THINKING_LEVELS = [
|
|
|
2124
2128
|
];
|
|
2125
2129
|
var SAKANA_THINKING_LEVELS = ["high", "xhigh"];
|
|
2126
2130
|
var XAI_THINKING_LEVELS = ["low", "medium", "high"];
|
|
2127
|
-
var
|
|
2131
|
+
var ANTHROPIC_XHIGH_THINKING_LEVELS = [
|
|
2128
2132
|
"low",
|
|
2129
2133
|
"medium",
|
|
2130
2134
|
"high",
|
|
@@ -2150,16 +2154,16 @@ function isXaiModel(provider) {
|
|
|
2150
2154
|
function isMoonshotK3Model(provider, model) {
|
|
2151
2155
|
return provider === "moonshot" && model === "kimi-k3";
|
|
2152
2156
|
}
|
|
2153
|
-
function
|
|
2154
|
-
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);
|
|
2155
2159
|
}
|
|
2156
2160
|
function isAnthropicAdaptiveModel(provider, model) {
|
|
2157
|
-
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);
|
|
2158
2162
|
}
|
|
2159
2163
|
function getSupportedThinkingLevels(provider, model) {
|
|
2160
2164
|
const maxLevel = getMaxThinkingLevel(model);
|
|
2161
2165
|
if (isAnthropicAdaptiveModel(provider, model)) {
|
|
2162
|
-
const levels2 =
|
|
2166
|
+
const levels2 = isAnthropicXhighModel(provider, model) ? ANTHROPIC_XHIGH_THINKING_LEVELS : ANTHROPIC_ADAPTIVE_THINKING_LEVELS;
|
|
2163
2167
|
const maxIndex2 = levels2.indexOf(maxLevel);
|
|
2164
2168
|
if (maxIndex2 === -1) return ["low", "medium", "high"];
|
|
2165
2169
|
return levels2.slice(0, maxIndex2 + 1);
|