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
+6 -8
View File
@@ -291,14 +291,12 @@ export async function refreshModelsForAccount(accountId: number) {
})), })),
).run(); ).run();
if (isApiKeyConnection(account)) { await setAccountRuntimeHealth(account.id, {
await setAccountRuntimeHealth(account.id, { state: 'healthy',
state: 'healthy', reason: '模型探测成功',
reason: '模型探测成功', source: 'model-discovery',
source: 'model-discovery', checkedAt,
checkedAt, });
});
}
const modelsPreview = Array.from(accountModels).slice(0, 10); const modelsPreview = Array.from(accountModels).slice(0, 10);
return { return {