fix: accept MBE 'healthy' status and show model info

- Updated testMbe() to accept status='healthy' from MarkBaseServer
- Added model and layers info to mbeInfo display
- MBE now shows 'MBE (e4b)' instead of generic 'MarkBaseEngine'
This commit is contained in:
2026-10-22 21:55:52 +08:00
parent 2cff332d55
commit a429aca344

View File

@@ -892,10 +892,12 @@ async function testMbe() {
if (contentType.includes('application/json')) { if (contentType.includes('application/json')) {
// JSON 格式响应 // JSON 格式响应
const json = await resp.json() const json = await resp.json()
isHealthy = json.status === 'ok' || json.status === 'OK' isHealthy = json.status === 'ok' || json.status === 'OK' || json.status === 'healthy'
mbeInfo.value = { mbeInfo.value = {
version: json.version || 'MarkBaseEngine', version: json.model ? `MBE (${json.model})` : 'MarkBaseEngine',
uptime: json.uptime || 0 uptime: json.uptime || 0,
model: json.model || null,
layers: json.layers || null
} }
} else { } else {
// 纯文本格式响应 // 纯文本格式响应