@t0ken.ai/memoryx-openclaw-plugin 2.2.55 → 2.2.56
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 -4
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import * as path from "path";
|
|
|
27
27
|
import * as os from "os";
|
|
28
28
|
import * as http from "http";
|
|
29
29
|
// 插件版本号 - 由 prebuild 脚本自动从 package.json 同步
|
|
30
|
-
const PLUGIN_VERSION = "2.2.
|
|
30
|
+
const PLUGIN_VERSION = "2.2.56";
|
|
31
31
|
const DEFAULT_API_BASE = "https://t0ken.ai/api";
|
|
32
32
|
const PLUGIN_DIR = path.join(os.homedir(), ".openclaw", "extensions", "memoryx-openclaw-plugin");
|
|
33
33
|
let logStream = null;
|
|
@@ -1089,7 +1089,7 @@ export default {
|
|
|
1089
1089
|
else {
|
|
1090
1090
|
api.logger.warn('[MemoryX] ⚠️ api.config not available - resolveModel may fail to find memoryx-proxy');
|
|
1091
1091
|
}
|
|
1092
|
-
// 注入 agents.defaults
|
|
1092
|
+
// 注入 agents.defaults:必须用完整 model id "provider/model",否则 model-selection 会把 "auto" 当成无 provider 并回退到 anthropic/auto
|
|
1093
1093
|
if (api.config) {
|
|
1094
1094
|
if (!api.config.agents) {
|
|
1095
1095
|
api.config.agents = {};
|
|
@@ -1098,9 +1098,9 @@ export default {
|
|
|
1098
1098
|
if (!agents.defaults) {
|
|
1099
1099
|
agents.defaults = {};
|
|
1100
1100
|
}
|
|
1101
|
+
agents.defaults.model = 'memoryx-proxy/auto';
|
|
1101
1102
|
agents.defaults.provider = 'memoryx-proxy';
|
|
1102
|
-
agents.defaults
|
|
1103
|
-
api.logger.info('[MemoryX] 📋 Injected agents.defaults: provider=memoryx-proxy, model=auto');
|
|
1103
|
+
api.logger.info('[MemoryX] 📋 Injected agents.defaults: model=memoryx-proxy/auto, provider=memoryx-proxy');
|
|
1104
1104
|
}
|
|
1105
1105
|
// 注册 Provider - 完全对齐 SlimClaw 格式
|
|
1106
1106
|
const registeredModelIds = VIRTUAL_MODELS.map(m => m.id).join(', ');
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED