forked from boos/BoosAPI
fix: reset health on model discovery success
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user