@kenkaiiii/gg-ai 5.74.0 → 5.74.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 +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1495,6 +1495,10 @@ function toLocalReasoningEffort(level) {
|
|
|
1495
1495
|
function toGlmReasoningEffort(level) {
|
|
1496
1496
|
return level === "ultra" ? "max" : level;
|
|
1497
1497
|
}
|
|
1498
|
+
function toCodexReasoningEffort(level, model) {
|
|
1499
|
+
if (level !== "ultra") return level;
|
|
1500
|
+
return model === "gpt-6-astra" || model === "gpt-6.1-sol" ? "xhigh" : "max";
|
|
1501
|
+
}
|
|
1498
1502
|
function toOpenAIReasoningEffort(level, model) {
|
|
1499
1503
|
const effort = level === "max" || level === "ultra" ? "xhigh" : level;
|
|
1500
1504
|
if (model.startsWith("fugu") && (effort === "low" || effort === "medium")) {
|
|
@@ -2962,7 +2966,7 @@ async function* runStream3(options, retriedWithoutReasoning = false) {
|
|
|
2962
2966
|
// GPT-5.6/6 require at least low; older models still support thinking off.
|
|
2963
2967
|
// Apply the floor here for every caller, including one-off prompt rewrites.
|
|
2964
2968
|
// `ultra` is a client orchestration preset, not a Codex API effort.
|
|
2965
|
-
effort: options.thinking
|
|
2969
|
+
effort: options.thinking ? toCodexReasoningEffort(options.thinking, options.model) : responsesLite ? "low" : "none",
|
|
2966
2970
|
summary: "auto",
|
|
2967
2971
|
...liteShape ? { context: "all_turns" } : {}
|
|
2968
2972
|
};
|