fixes multiple enumeration on infopage
This commit is contained in:
parent
08b2196bfb
commit
79e1fe09e4
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue