@kenkaiiii/gg-ai 5.54.0 → 5.55.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 +7 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -201,7 +201,7 @@ function finaliseBySource(source, message, requestId, hint) {
|
|
|
201
201
|
headline: "GG Coder hit an unexpected error.",
|
|
202
202
|
source,
|
|
203
203
|
message,
|
|
204
|
-
guidance: hint ?? "This looks like a GG Coder bug \u2014 please report it to the developer
|
|
204
|
+
guidance: hint ?? "This looks like a GG Coder bug \u2014 please report it to the developer.",
|
|
205
205
|
...requestId ? { requestId } : {}
|
|
206
206
|
};
|
|
207
207
|
}
|
|
@@ -235,6 +235,9 @@ function providerGuidance(provider, message, statusCode) {
|
|
|
235
235
|
if (statusCode === 401 || lower.includes("unauthorized") || lower.includes("invalid api key")) {
|
|
236
236
|
return `Authentication failed with ${name}. Re-authenticate to refresh your credentials.`;
|
|
237
237
|
}
|
|
238
|
+
if (lower.includes("requires a newer version")) {
|
|
239
|
+
return `${name} needs a newer GG Coder to serve this model. Update GG Coder to the latest version and retry, or switch to another ${name} model via the model selector.`;
|
|
240
|
+
}
|
|
238
241
|
if (lower.includes("overloaded") || lower.includes("engine_overloaded")) {
|
|
239
242
|
return `${name}'s servers are overloaded right now. Retry in a moment \u2014 not a GG Coder issue.`;
|
|
240
243
|
}
|
|
@@ -2380,7 +2383,7 @@ function extractRequestIdFromMessage(message) {
|
|
|
2380
2383
|
|
|
2381
2384
|
// src/providers/openai-codex.ts
|
|
2382
2385
|
var DEFAULT_BASE_URL = "https://chatgpt.com/backend-api";
|
|
2383
|
-
var CODEX_CLIENT_VERSION = "0.
|
|
2386
|
+
var CODEX_CLIENT_VERSION = "0.153.4";
|
|
2384
2387
|
var CODEX_REQUEST_COMPRESSION_MIN_BYTES = 16 * 1024;
|
|
2385
2388
|
var zstdInitPromise;
|
|
2386
2389
|
async function encodeCodexRequest(body) {
|
|
@@ -2524,13 +2527,9 @@ async function* runStream3(options) {
|
|
|
2524
2527
|
if (usageLimit) throw usageLimit;
|
|
2525
2528
|
let hint;
|
|
2526
2529
|
if (response.status === 400 && text.includes("not supported")) {
|
|
2527
|
-
|
|
2528
|
-
hint = "Use gpt-5.5 instead. OpenAI's Codex model catalog does not list gpt-5.5-pro.";
|
|
2529
|
-
} else {
|
|
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
|
-
}
|
|
2530
|
+
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.";
|
|
2532
2531
|
} else if (response.status === 404 && text.includes("does not exist")) {
|
|
2533
|
-
hint = "This model is not in
|
|
2532
|
+
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.";
|
|
2534
2533
|
}
|
|
2535
2534
|
throw new ProviderError("openai", message, {
|
|
2536
2535
|
statusCode: response.status,
|