@kenkaiiii/gg-ai 5.53.2 → 5.54.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.js CHANGED
@@ -1958,7 +1958,7 @@ async function* runStream2(options) {
1958
1958
  if (options.provider === "openai" || options.provider === "moonshot") {
1959
1959
  const paramsAny = params;
1960
1960
  paramsAny.prompt_cache_key = normalizePromptCacheKey(options.promptCacheKey ?? "ggcoder");
1961
- if (options.provider === "openai" && options.model.startsWith("gpt-5.6")) {
1961
+ if (options.provider === "openai" && (options.model.startsWith("gpt-5.6") || options.model.startsWith("gpt-6"))) {
1962
1962
  paramsAny.prompt_cache_options = { mode: "implicit", ttl: "30m" };
1963
1963
  } else if (!isKimiK3 && (options.cacheRetention ?? "short") === "long") {
1964
1964
  paramsAny.prompt_cache_retention = "24h";
@@ -2426,7 +2426,7 @@ async function encodeCodexRequest(body) {
2426
2426
  }
2427
2427
  }
2428
2428
  function usesResponsesLite(model) {
2429
- return model.startsWith("gpt-5.6-");
2429
+ return model.startsWith("gpt-5.6-") || model.startsWith("gpt-6-");
2430
2430
  }
2431
2431
  function outputTextKey(itemId, contentIndex) {
2432
2432
  return `${itemId ?? ""}:${contentIndex ?? 0}`;
@@ -2530,7 +2530,7 @@ async function* runStream3(options) {
2530
2530
  hint = "This model is not available through Codex for the authenticated account. Switch to a model listed for OpenAI Codex via the model selector, or check your Codex usage limits.";
2531
2531
  }
2532
2532
  } else if (response.status === 404 && text.includes("does not exist")) {
2533
- hint = "This model is not in the current OpenAI Codex catalog for this account. Switch to gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, or gpt-5.5 via the model selector.";
2533
+ hint = "This model is not in the current OpenAI Codex catalog for this account. Switch to gpt-6-astra, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, or gpt-5.5 via the model selector.";
2534
2534
  }
2535
2535
  throw new ProviderError("openai", message, {
2536
2536
  statusCode: response.status,