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 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");