@kenkaiiii/gg-ai 5.9.0 → 5.9.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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -167,7 +167,7 @@ function finaliseBySource(source, message, requestId, hint) {
|
|
|
167
167
|
headline: "Authentication issue.",
|
|
168
168
|
source,
|
|
169
169
|
message,
|
|
170
|
-
guidance: hint ?? "
|
|
170
|
+
guidance: hint ?? "Re-authenticate to refresh your credentials.",
|
|
171
171
|
...requestId ? { requestId } : {}
|
|
172
172
|
};
|
|
173
173
|
case "provider":
|
|
@@ -222,7 +222,7 @@ function providerGuidance(provider, message, statusCode) {
|
|
|
222
222
|
const status = provider ? PROVIDER_STATUS_URL[provider] : void 0;
|
|
223
223
|
const lower = message.toLowerCase();
|
|
224
224
|
if (statusCode === 401 || lower.includes("unauthorized") || lower.includes("invalid api key")) {
|
|
225
|
-
return `Authentication failed with ${name}.
|
|
225
|
+
return `Authentication failed with ${name}. Re-authenticate to refresh your credentials.`;
|
|
226
226
|
}
|
|
227
227
|
if (lower.includes("overloaded") || lower.includes("engine_overloaded")) {
|
|
228
228
|
return `${name}'s servers are overloaded right now. Retry in a moment \u2014 not a ggcoder issue.`;
|