@kenkaiiii/gg-ai 5.55.0 → 5.55.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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2547,8 +2547,10 @@ async function* runStream3(options) {
|
|
|
2547
2547
|
body.temperature = options.temperature;
|
|
2548
2548
|
}
|
|
2549
2549
|
body.reasoning = {
|
|
2550
|
+
// GPT-5.6/6 require at least low; older models still support thinking off.
|
|
2551
|
+
// Apply the floor here for every caller, including one-off prompt rewrites.
|
|
2550
2552
|
// `ultra` is a client orchestration preset, not a Codex API effort.
|
|
2551
|
-
effort: options.thinking === "ultra" ? "max" : options.thinking ?? "none",
|
|
2553
|
+
effort: options.thinking === "ultra" ? "max" : options.thinking ?? (responsesLite ? "low" : "none"),
|
|
2552
2554
|
summary: "auto",
|
|
2553
2555
|
...responsesLite ? { context: "all_turns" } : {}
|
|
2554
2556
|
};
|
|
@@ -2593,7 +2595,7 @@ async function* runStream3(options) {
|
|
|
2593
2595
|
const usageLimit = codexUsageLimitError(parsed.errorObj, response.status, requestId);
|
|
2594
2596
|
if (usageLimit) throw usageLimit;
|
|
2595
2597
|
let hint;
|
|
2596
|
-
if (response.status === 400 &&
|
|
2598
|
+
if (response.status === 400 && message === `The '${options.model}' model is not supported when using Codex with a ChatGPT account.`) {
|
|
2597
2599
|
hint = "This model is not available through your ChatGPT account. Switch to a model listed for OpenAI via the model selector, or check your ChatGPT usage limits.";
|
|
2598
2600
|
} else if (response.status === 404 && text.includes("does not exist")) {
|
|
2599
2601
|
hint = "This model is not in OpenAI's current catalog for your ChatGPT account. Switch to GPT-6 Astra, GPT-5.6 Sol, GPT-5.6 Terra, or GPT-5.6 Luna via the model selector.";
|