@opengeni/codex 0.2.29-canary.36855269964001 → 0.2.29

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 CHANGED
@@ -1526,9 +1526,6 @@ async function bufferCodexErrorResponse(res) {
1526
1526
  try {
1527
1527
  const parsed = JSON.parse(bodyText);
1528
1528
  errorType = typeof parsed.error?.type === "string" ? parsed.error.type : void 0;
1529
- if (parsed.error === void 0 && typeof parsed.detail === "string") {
1530
- responseBody = JSON.stringify({ ...parsed, error: { message: parsed.detail } });
1531
- }
1532
1529
  } catch {
1533
1530
  }
1534
1531
  if (truncated) {