@t0ken.ai/memoryx-openclaw-plugin 2.2.66 → 2.2.67
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/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/sidecar.js +2 -2
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as path from "path";
|
|
5
5
|
import * as os from "os";
|
|
6
6
|
// Plugin version - synced from package.json by prebuild script
|
|
7
|
-
export const PLUGIN_VERSION = "2.2.
|
|
7
|
+
export const PLUGIN_VERSION = "2.2.67";
|
|
8
8
|
export const DEFAULT_API_BASE = "https://t0ken.ai/api";
|
|
9
9
|
export const PLUGIN_DIR = path.join(os.homedir(), ".openclaw", "extensions", "memoryx-openclaw-plugin");
|
|
10
10
|
/** 真实上游 baseUrl 缓存文件:重启后若配置已被改成 localhost,从此文件恢复各厂商真实地址。 */
|
package/dist/sidecar.js
CHANGED
|
@@ -144,7 +144,7 @@ export class SidecarServer {
|
|
|
144
144
|
const pathLog = (req.url || "/").split("?")[0] || "/";
|
|
145
145
|
log(`[Sidecar] ${reqId} ${method} ${pathLog} model=${openaiRequest.model ?? "-"} stream=${stream} → proxy ${proxyUrl}`, { console: true });
|
|
146
146
|
const fetchAbort = new AbortController();
|
|
147
|
-
const fetchTimer = setTimeout(() => fetchAbort.abort(),
|
|
147
|
+
const fetchTimer = setTimeout(() => fetchAbort.abort(), 150_000);
|
|
148
148
|
let proxyResponse = null;
|
|
149
149
|
try {
|
|
150
150
|
proxyResponse = await fetch(proxyUrl, {
|
|
@@ -156,7 +156,7 @@ export class SidecarServer {
|
|
|
156
156
|
}
|
|
157
157
|
catch (e) {
|
|
158
158
|
proxyResponse = null;
|
|
159
|
-
const msg = fetchAbort.signal.aborted ? "fetch timeout (
|
|
159
|
+
const msg = fetchAbort.signal.aborted ? "fetch timeout (150s)" : (e?.message ?? String(e));
|
|
160
160
|
log(`[Sidecar] ${reqId} err proxy fetch: ${msg}`, { console: true });
|
|
161
161
|
}
|
|
162
162
|
finally {
|
package/package.json
CHANGED