mirror of
https://github.com/dtzp555-max/ocm.git
synced 2026-07-22 05:25:08 +00:00
fix: include ocmVersion in /api/status
This commit is contained in:
@@ -354,6 +354,7 @@ async function handleApi(req, res, urlObj, body) {
|
|||||||
})(),
|
})(),
|
||||||
primaryModel: cfg.agents?.defaults?.model?.primary || '未配置',
|
primaryModel: cfg.agents?.defaults?.model?.primary || '未配置',
|
||||||
platform: process.platform,
|
platform: process.platform,
|
||||||
|
ocmVersion: APP_VERSION,
|
||||||
}));
|
}));
|
||||||
} catch (e) { res.writeHead(500); res.end(JSON.stringify({ ok: false, error: e.message })); }
|
} catch (e) { res.writeHead(500); res.end(JSON.stringify({ ok: false, error: e.message })); }
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user