improves startup logging

This commit is contained in:
nai-degen 2023-04-08 05:45:09 -05:00 committed by nai-degen
parent e2509d087c
commit ba4aca7608
1 changed files with 5 additions and 3 deletions

View File

@ -47,7 +47,7 @@ function init() {
keyList = [{ key: keyString, isTrial: false, isGpt4: true }];
}
for (const key of keyList) {
keyPool.push({
const newKey = {
...key,
isDisabled: false,
softLimit: 0,
@ -60,10 +60,12 @@ function init() {
.update(key.key)
.digest("hex")
.slice(0, 6),
});
};
keyPool.push(newKey);
// TODO: check each key's usage upon startup.
logger.info("Key added", { key: newKey.hash });
}
// TODO: check each key's usage upon startup.
}
function list() {