@kenkaiiii/gg-ai 5.53.3 → 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.cjs CHANGED
@@ -2025,7 +2025,7 @@ async function* runStream2(options) {
2025
2025
  if (options.provider === "openai" || options.provider === "moonshot") {
2026
2026
  const paramsAny = params;
2027
2027
  paramsAny.prompt_cache_key = normalizePromptCacheKey(options.promptCacheKey ?? "ggcoder");
2028
- if (options.provider === "openai" && options.model.startsWith("gpt-5.6")) {
2028
+ if (options.provider === "openai" && (options.model.startsWith("gpt-5.6") || options.model.startsWith("gpt-6"))) {
2029
2029
  paramsAny.prompt_cache_options = { mode: "implicit", ttl: "30m" };
2030
2030
  } else if (!isKimiK3 && (options.cacheRetention ?? "short") === "long") {
2031
2031
  paramsAny.prompt_cache_retention = "24h";
@@ -2493,7 +2493,7 @@ async function encodeCodexRequest(body) {
2493
2493
  }
2494
2494
  }
2495
2495
  function usesResponsesLite(model) {
2496
- return model.startsWith("gpt-5.6-");
2496
+ return model.startsWith("gpt-5.6-") || model.startsWith("gpt-6-");
2497
2497
  }
2498
2498
  function outputTextKey(itemId, contentIndex) {
2499
2499
  return `${itemId ?? ""}:${contentIndex ?? 0}`;
@@ -2597,7 +2597,7 @@ async function* runStream3(options) {
2597
2597
  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.";
2598
2598
  }
2599
2599
  } else if (response.status === 404 && text.includes("does not exist")) {
2600
- 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.";
2600
+ 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.";
2601
2601
  }
2602
2602
  throw new ProviderError("openai", message, {
2603
2603
  statusCode: response.status,