@kenkaiiii/gg-ai 5.74.0 → 5.74.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/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.js
CHANGED
|
@@ -1422,6 +1422,10 @@ function toLocalReasoningEffort(level) {
|
|
|
1422
1422
|
function toGlmReasoningEffort(level) {
|
|
1423
1423
|
return level === "ultra" ? "max" : level;
|
|
1424
1424
|
}
|
|
1425
|
+
function toCodexReasoningEffort(level, model) {
|
|
1426
|
+
if (level !== "ultra") return level;
|
|
1427
|
+
return model === "gpt-6-astra" || model === "gpt-6.1-sol" ? "xhigh" : "max";
|
|
1428
|
+
}
|
|
1425
1429
|
function toOpenAIReasoningEffort(level, model) {
|
|
1426
1430
|
const effort = level === "max" || level === "ultra" ? "xhigh" : level;
|
|
1427
1431
|
if (model.startsWith("fugu") && (effort === "low" || effort === "medium")) {
|
|
@@ -2889,7 +2893,7 @@ async function* runStream3(options, retriedWithoutReasoning = false) {
|
|
|
2889
2893
|
// GPT-5.6/6 require at least low; older models still support thinking off.
|
|
2890
2894
|
// Apply the floor here for every caller, including one-off prompt rewrites.
|
|
2891
2895
|
// `ultra` is a client orchestration preset, not a Codex API effort.
|
|
2892
|
-
effort: options.thinking
|
|
2896
|
+
effort: options.thinking ? toCodexReasoningEffort(options.thinking, options.model) : responsesLite ? "low" : "none",
|
|
2893
2897
|
summary: "auto",
|
|
2894
2898
|
...liteShape ? { context: "all_turns" } : {}
|
|
2895
2899
|
};
|