fixes multiple enumeration on infopage

This commit is contained in:
nai-degen 2023-11-08 12:02:23 -06:00
parent 08b2196bfb
commit 79e1fe09e4
1 changed files with 1 additions and 3 deletions

View File

@ -258,9 +258,7 @@ function getOpenAIInfo() {
const keys = keyPool.list().filter(keyIsOpenAIKey); const keys = keyPool.list().filter(keyIsOpenAIKey);
const enabledFamilies = new Set(config.allowedModelFamilies); const enabledFamilies = new Set(config.allowedModelFamilies);
const accessibleFamilies = keyPool const accessibleFamilies = keys
.list()
.filter(keyIsOpenAIKey)
.flatMap((k) => k.modelFamilies) .flatMap((k) => k.modelFamilies)
.filter((f) => enabledFamilies.has(f)) .filter((f) => enabledFamilies.has(f))
.concat("turbo"); .concat("turbo");