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 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");
|
||||||
|
|
Loading…
Reference in New Issue