+12
-0
@@ -969,2 +969,14 @@ "use strict"; | ||
| ); | ||
| if (typeof (error2 == null ? void 0 : error2.message) === "string" && error2.message.includes("Cannot fetch content from the provided URL")) { | ||
| logger_default.error( | ||
| id, | ||
| "Circuit breaker: Google could not fetch image URL(s); failing over (no more Google retries)" | ||
| ); | ||
| const fetchError = new Error( | ||
| "Google AI could not fetch the provided image URL(s)." | ||
| ); | ||
| fetchError.cause = error2; | ||
| fetchError.googleFetchFailure = true; | ||
| throw fetchError; | ||
| } | ||
| const violationReason = CONTENT_VIOLATION_REASONS.has(error2.finishReason) && error2.finishReason || CONTENT_VIOLATION_REASONS.has((_a = error2.promptFeedback) == null ? void 0 : _a.blockReason) && ((_b = error2.promptFeedback) == null ? void 0 : _b.blockReason); | ||
@@ -971,0 +983,0 @@ if (violationReason) { |
+12
-0
@@ -938,2 +938,14 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { | ||
| ); | ||
| if (typeof (error2 == null ? void 0 : error2.message) === "string" && error2.message.includes("Cannot fetch content from the provided URL")) { | ||
| logger_default.error( | ||
| id, | ||
| "Circuit breaker: Google could not fetch image URL(s); failing over (no more Google retries)" | ||
| ); | ||
| const fetchError = new Error( | ||
| "Google AI could not fetch the provided image URL(s)." | ||
| ); | ||
| fetchError.cause = error2; | ||
| fetchError.googleFetchFailure = true; | ||
| throw fetchError; | ||
| } | ||
| const violationReason = CONTENT_VIOLATION_REASONS.has(error2.finishReason) && error2.finishReason || CONTENT_VIOLATION_REASONS.has((_a = error2.promptFeedback) == null ? void 0 : _a.blockReason) && ((_b = error2.promptFeedback) == null ? void 0 : _b.blockReason); | ||
@@ -940,0 +952,0 @@ if (violationReason) { |
+1
-1
| { | ||
| "name": "190proof", | ||
| "version": "1.0.93", | ||
| "version": "1.0.94", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
271889
1.39%2573
0.94%