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:
@@ -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 {
|
||||||
// 纯文本格式响应
|
// 纯文本格式响应
|
||||||
|
|||||||
Reference in New Issue
Block a user