@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.js CHANGED
@@ -2480,8 +2480,10 @@ async function* runStream3(options) {
2480
2480
  body.temperature = options.temperature;
2481
2481
  }
2482
2482
  body.reasoning = {
2483
+ // GPT-5.6/6 require at least low; older models still support thinking off.
2484
+ // Apply the floor here for every caller, including one-off prompt rewrites.
2483
2485
  // `ultra` is a client orchestration preset, not a Codex API effort.
2484
- effort: options.thinking === "ultra" ? "max" : options.thinking ?? "none",
2486
+ effort: options.thinking === "ultra" ? "max" : options.thinking ?? (responsesLite ? "low" : "none"),
2485
2487
  summary: "auto",
2486
2488
  ...responsesLite ? { context: "all_turns" } : {}
2487
2489
  };
@@ -2526,7 +2528,7 @@ async function* runStream3(options) {
2526
2528
  const usageLimit = codexUsageLimitError(parsed.errorObj, response.status, requestId);
2527
2529
  if (usageLimit) throw usageLimit;
2528
2530
  let hint;
2529
- if (response.status === 400 && text.includes("not supported")) {
2531
+ if (response.status === 400 && message === `The '${options.model}' model is not supported when using Codex with a ChatGPT account.`) {
2530
2532
  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.";
2531
2533
  } else if (response.status === 404 && text.includes("does not exist")) {
2532
2534
  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.";