fixes infopage crash when check_keys is disabled
This commit is contained in:
parent
c453a5f2ad
commit
5db07404f2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue