open-agents-ai 0.134.0 → 0.135.0
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 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21418,6 +21418,10 @@ If you're stuck, try a completely different approach. Do NOT repeat what failed
|
|
|
21418
21418
|
const errMsg = reqErr instanceof Error ? reqErr.message : String(reqErr);
|
|
21419
21419
|
const cause = reqErr instanceof Error && reqErr.cause ? ` (${reqErr.cause.message ?? ""} ${reqErr.cause?.code ?? ""})` : "";
|
|
21420
21420
|
this.emit({ type: "error", content: `Backend error: ${errMsg}${cause}`, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
|
|
21421
|
+
if (/HTTP 404|not found|model.*not found/i.test(errMsg)) {
|
|
21422
|
+
this.emit({ type: "error", content: `Model not available. Use /model to select a different model.`, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
|
|
21423
|
+
break;
|
|
21424
|
+
}
|
|
21421
21425
|
messages.push({ role: "user", content: "[System: backend request failed, retrying on next turn. The previous request was lost.]" });
|
|
21422
21426
|
continue;
|
|
21423
21427
|
}
|
package/package.json
CHANGED