opencode-immune 1.0.2 → 1.0.3
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/plugin.js +1 -3
- package/package.json +1 -1
package/dist/plugin.js
CHANGED
|
@@ -197,9 +197,7 @@ function isRateLimitApiError(error) {
|
|
|
197
197
|
const maybeError = error;
|
|
198
198
|
const message = `${maybeError.message ?? ""} ${maybeError.data?.message ?? ""}`.toLowerCase();
|
|
199
199
|
const type = `${maybeError.data?.type ?? ""}`.toLowerCase();
|
|
200
|
-
return (
|
|
201
|
-
maybeError.data?.isRetryable === true &&
|
|
202
|
-
(type.includes("rate_limit") || message.includes("too many requests") || message.includes("rate limit")));
|
|
200
|
+
return ((type.includes("rate_limit") || message.includes("too many requests") || message.includes("rate limit")));
|
|
203
201
|
}
|
|
204
202
|
async function setSessionFallbackModel(state, sessionID, model) {
|
|
205
203
|
const existing = state.managedUltraworkSessions.get(sessionID);
|