1
0
forked from boos/BoosAPI

fix: reset health on model discovery success

This commit is contained in:
cita
2026-03-10 16:27:10 +08:00
parent d5cd8292eb
commit 01bf2212f8
-2
View File
@@ -291,14 +291,12 @@ export async function refreshModelsForAccount(accountId: number) {
})),
).run();
if (isApiKeyConnection(account)) {
await setAccountRuntimeHealth(account.id, {
state: 'healthy',
reason: '模型探测成功',
source: 'model-discovery',
checkedAt,
});
}
const modelsPreview = Array.from(accountModels).slice(0, 10);
return {