pendra 0.17.1 → 0.17.2
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.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1780,7 +1780,7 @@ var Rerank = class {
|
|
|
1780
1780
|
};
|
|
1781
1781
|
|
|
1782
1782
|
// src/version.ts
|
|
1783
|
-
var VERSION = "0.17.
|
|
1783
|
+
var VERSION = "0.17.2";
|
|
1784
1784
|
var USER_AGENT = `pendra-node/${VERSION}`;
|
|
1785
1785
|
|
|
1786
1786
|
// src/client.ts
|
|
@@ -1887,8 +1887,10 @@ var Pendra = class {
|
|
|
1887
1887
|
clearTimeout(timeoutId);
|
|
1888
1888
|
}
|
|
1889
1889
|
if (response.status === 404) {
|
|
1890
|
+
const body = await readErrorBody(response);
|
|
1891
|
+
const detail = typeof body === "object" && body !== null ? body.detail : void 0;
|
|
1890
1892
|
throw new PrivateInferenceError(
|
|
1891
|
-
"No encryption key is registered for this organisation. Start a worker and it will be issued one automatically."
|
|
1893
|
+
messageFromDetail(detail) ?? "No encryption key is registered for this organisation. Start a worker and it will be issued one automatically."
|
|
1892
1894
|
);
|
|
1893
1895
|
}
|
|
1894
1896
|
if (!response.ok) {
|