fix: increase start_service timeout for MBE to 60s

- MBE needs up to 60s to load model
- Default timeout (30s) was too short causing timeout errors
This commit is contained in:
2026-10-23 01:22:44 +08:00
parent 50bd33106f
commit c21c186e0c

View File

@@ -654,7 +654,8 @@ case 'search_keyword': {
}
case 'start_service': {
const mbUrl = detectBaseUrl()
return { url: `${mbUrl}/api/v2/service/start`, method: 'POST', body: { name: a.name } }
const timeout = a.name === 'mbe' ? 60000 : undefined // MBE needs 60s to load model
return { url: `${mbUrl}/api/v2/service/start`, method: 'POST', body: { name: a.name }, timeout }
}
// --- Admin Panel ---