diff --git a/src/info-page.ts b/src/info-page.ts index 4041dd5..3a18d11 100644 --- a/src/info-page.ts +++ b/src/info-page.ts @@ -258,9 +258,7 @@ function getOpenAIInfo() { const keys = keyPool.list().filter(keyIsOpenAIKey); const enabledFamilies = new Set(config.allowedModelFamilies); - const accessibleFamilies = keyPool - .list() - .filter(keyIsOpenAIKey) + const accessibleFamilies = keys .flatMap((k) => k.modelFamilies) .filter((f) => enabledFamilies.has(f)) .concat("turbo");