@kenkaiiii/gg-ai 5.103.0 → 5.104.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/README.md CHANGED
@@ -79,7 +79,7 @@ gg-ai makes one model call. To run the tools and send results back until the mod
79
79
  | Provider | Built-in models | Notes |
80
80
  | ------------- | --------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
81
81
  | `anthropic` | Claude Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5 | Extended thinking, prompt caching, server-side compaction |
82
- | `openai` | GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Luna | Responses API. API key, or a ChatGPT plan token plus `accountId` (Sign in with ChatGPT) |
82
+ | `openai` | GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna | Responses API. API key, or a ChatGPT plan token plus `accountId` (Sign in with ChatGPT) |
83
83
  | `gemini` | Gemini 3.1 Pro (Preview), 3.8 / 3.5 Flash, 3.5 / 3.1 Flash Lite | Google AI Studio key on the public Gemini API. Native video input |
84
84
  | `xai` | Grok 4.7 | API key |
85
85
  | `moonshot` | Kimi K3, K2.8 Preview, K2.7 Code, K2.7 Code HighSpeed | Moonshot key, or a Kimi Code plan key with its `baseUrl`. Native video input |
package/dist/index.cjs CHANGED
@@ -92,7 +92,7 @@ module.exports = __toCommonJS(index_exports);
92
92
  var FAST_MODE_SUFFIX = "-fast";
93
93
  var FAST_MODE_BASE_MODELS = {
94
94
  anthropic: ["claude-fable-5-2", "claude-opus-5-5"],
95
- openai: ["gpt-6-astra", "gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna"]
95
+ openai: ["gpt-6.2-astra", "gpt-6.2-sol", "gpt-6.1-terra", "gpt-6-luna"]
96
96
  };
97
97
  function resolveFastModeModel(provider, model) {
98
98
  if (!model.endsWith(FAST_MODE_SUFFIX)) return { model, fast: false };
@@ -1937,7 +1937,7 @@ function toGlmReasoningEffort(level) {
1937
1937
  }
1938
1938
  function toCodexReasoningEffort(level, model) {
1939
1939
  if (level !== "ultra") return level;
1940
- return model === "gpt-6-astra" || model === "gpt-6.1-sol" || model === "gpt-6.1-terra" ? "xhigh" : "max";
1940
+ return model === "gpt-6.2-astra" || model === "gpt-6.2-sol" || model === "gpt-6.1-terra" ? "xhigh" : "max";
1941
1941
  }
1942
1942
  var DECLARED_EFFORT_ORDER = ["low", "medium", "high", "xhigh", "max"];
1943
1943
  function effortForRequest(level, model, declared) {
@@ -5936,6 +5936,23 @@ function formatChatError(error) {
5936
5936
  fastRejection.guidance
5937
5937
  );
5938
5938
  }
5939
+ if (code === "subscription_sharing_usage_limit_exceeded") {
5940
+ return {
5941
+ ...present(
5942
+ "usage_limit",
5943
+ "ChatGPT usage limit reached",
5944
+ "This can be your plan\u2019s limit or the one ChatGPT sets for GG Coder. Check or raise it in Manage usage."
5945
+ ),
5946
+ manageUsage: "chatgpt"
5947
+ };
5948
+ }
5949
+ if (code === "subscription_sharing_usage_unavailable") {
5950
+ return present(
5951
+ "provider",
5952
+ "ChatGPT couldn\u2019t check your plan usage",
5953
+ "Try again in a moment, or add an OpenAI API key to keep going."
5954
+ );
5955
+ }
5939
5956
  if (/insufficient.*(?:balance|credits?)|(?:balance|credits?).*(?:insufficient|exhausted|depleted)|credit balance is too low|payment_required/.test(
5940
5957
  text
5941
5958
  )) {