config validation

This commit is contained in:
Dax Raad
2025-06-20 00:57:28 -04:00
parent 6674c6083a
commit 41dba0db08
10 changed files with 174 additions and 72 deletions

View File

@@ -181,7 +181,11 @@ export namespace Provider {
mergeProvider(providerID, provider.options ?? {}, "config")
}
for (const providerID of Object.keys(providers)) {
for (const [providerID, provider] of Object.entries(providers)) {
if (Object.keys(provider.info.models).length === 0) {
delete providers[providerID]
continue
}
log.info("found", { providerID })
}