@kenkaiiii/gg-ai 5.10.1 → 5.11.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 +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -873,7 +873,7 @@ function toAnthropicThinking(level, maxTokens, model) {
|
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
875
|
const VISIBLE_FLOOR = 1024;
|
|
876
|
-
const effectiveLevel = level === "xhigh" || level === "max" ? "high" : level;
|
|
876
|
+
const effectiveLevel = level === "xhigh" || level === "max" || level === "ultra" ? "high" : level;
|
|
877
877
|
const budgetMap = {
|
|
878
878
|
low: Math.max(1024, Math.floor(maxTokens * 0.2)),
|
|
879
879
|
medium: Math.max(2048, Math.floor(maxTokens * 0.45)),
|
|
@@ -1041,7 +1041,7 @@ function toOpenAIToolChoice(choice) {
|
|
|
1041
1041
|
return { type: "function", function: { name: choice.name } };
|
|
1042
1042
|
}
|
|
1043
1043
|
function toOpenAIReasoningEffort(level, model) {
|
|
1044
|
-
const effort = level === "max" ? "xhigh" : level;
|
|
1044
|
+
const effort = level === "max" || level === "ultra" ? "xhigh" : level;
|
|
1045
1045
|
if (model.startsWith("fugu") && (effort === "low" || effort === "medium")) {
|
|
1046
1046
|
return "high";
|
|
1047
1047
|
}
|
|
@@ -2227,7 +2227,8 @@ async function* runStream3(options) {
|
|
|
2227
2227
|
body.temperature = options.temperature;
|
|
2228
2228
|
}
|
|
2229
2229
|
body.reasoning = {
|
|
2230
|
-
|
|
2230
|
+
// `ultra` is a client orchestration preset, not a Codex API effort.
|
|
2231
|
+
effort: options.thinking === "ultra" ? "max" : options.thinking ?? "none",
|
|
2231
2232
|
summary: "auto",
|
|
2232
2233
|
...responsesLite ? { context: "all_turns" } : {}
|
|
2233
2234
|
};
|
|
@@ -2880,6 +2881,7 @@ function toGemini3ThinkingLevel(level) {
|
|
|
2880
2881
|
case "high":
|
|
2881
2882
|
case "xhigh":
|
|
2882
2883
|
case "max":
|
|
2884
|
+
case "ultra":
|
|
2883
2885
|
return "HIGH";
|
|
2884
2886
|
}
|
|
2885
2887
|
}
|
|
@@ -2892,6 +2894,7 @@ function toThinkingBudget(level) {
|
|
|
2892
2894
|
case "high":
|
|
2893
2895
|
case "xhigh":
|
|
2894
2896
|
case "max":
|
|
2897
|
+
case "ultra":
|
|
2895
2898
|
return 8192;
|
|
2896
2899
|
}
|
|
2897
2900
|
}
|