claw-subagent-service 0.0.62 → 0.0.63
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/package.json
CHANGED
|
@@ -332,7 +332,14 @@ class OpenClawClient {
|
|
|
332
332
|
continue;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
|
|
335
|
+
if (is404 && isLast) {
|
|
336
|
+
this.log?.error(`[OpenClawClient] 所有 SSE 端点均返回 404。OpenClaw chatCompletions 端点未启用。`);
|
|
337
|
+
this.log?.error(`[OpenClawClient] 请检查 ~/.openclaw/openclaw.json 中是否包含:`);
|
|
338
|
+
this.log?.error(`[OpenClawClient] gateway.http.endpoints.chatCompletions.enabled = true`);
|
|
339
|
+
this.log?.error(`[OpenClawClient] 修改后请重启 OpenClaw gateway: openclaw gateway`);
|
|
340
|
+
} else {
|
|
341
|
+
this.log?.error(`[OpenClawClient] SSE 请求失败: ${err.message}`);
|
|
342
|
+
}
|
|
336
343
|
// 不再内部调用 onError,让错误通过 Promise reject 向上传播,便于调用方回退
|
|
337
344
|
throw err;
|
|
338
345
|
}
|