fixes infopage regression when CHECK_KEYS=false

This commit is contained in:
nai-degen 2023-07-08 15:29:43 -05:00
parent 71882b18ae
commit 32605fff53
1 changed files with 3 additions and 0 deletions

View File

@ -137,6 +137,9 @@ function getOpenAIInfo() {
} else {
info.status = "Key checking is disabled." as any;
info.turbo = { activeKeys: keys.filter((k) => !k.isDisabled).length };
info.gpt4 = {
activeKeys: keys.filter((k) => !k.isDisabled && k.isGpt4).length,
};
}
if (config.queueMode !== "none") {