fixes infopage crash when check_keys is disabled

This commit is contained in:
nai-degen 2023-11-10 22:41:57 -06:00
parent c453a5f2ad
commit 5db07404f2
1 changed files with 1 additions and 0 deletions

View File

@ -304,6 +304,7 @@ function getOpenAIInfo() {
familySet.forEach((f) => {
if (enabledFamilies.has(f)) {
if (!info[f]) info[f] = { activeKeys: 0 }; // may occur if checkKeys is disabled
const { estimatedQueueTime, proomptersInQueue } = getQueueInformation(f);
info[f]!.proomptersInQueue = proomptersInQueue;
info[f]!.estimatedQueueTime = estimatedQueueTime;