@t0ken.ai/memoryx-openclaw-plugin 2.2.71 → 2.2.72
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.72";
|
|
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
|
@@ -125,7 +125,7 @@ export class SidecarServer {
|
|
|
125
125
|
}
|
|
126
126
|
log(`[Sidecar] ${reqId} fallback → ${provider} ${upstreamUrl} model=${fallbackBody.model} fmt=${requestFormat}`, { console: true });
|
|
127
127
|
const stream = !!fallbackBody.stream;
|
|
128
|
-
const timeout = stream ?
|
|
128
|
+
const timeout = stream ? 120_000 : 90_000;
|
|
129
129
|
const abort = new AbortController();
|
|
130
130
|
const timer = setTimeout(() => abort.abort(), timeout);
|
|
131
131
|
let resp;
|
|
@@ -273,7 +273,7 @@ export class SidecarServer {
|
|
|
273
273
|
};
|
|
274
274
|
const pathLog = url.split("?")[0] || "/";
|
|
275
275
|
log(`[Sidecar] ${reqId} ${method} ${pathLog} fmt=${requestFormat} provider=${realProvider} model=${parsedBody.model ?? "-"} stream=${stream}`, { console: true });
|
|
276
|
-
const FETCH_TIMEOUT = stream ?
|
|
276
|
+
const FETCH_TIMEOUT = stream ? 120_000 : 90_000;
|
|
277
277
|
const REASONING_CHUNK_TIMEOUT = 120_000;
|
|
278
278
|
const CHUNK_TIMEOUT = 30_000;
|
|
279
279
|
const fetchAbort = new AbortController();
|
package/package.json
CHANGED