This commit is contained in:
di-sukharev
2023-05-20 13:16:41 +08:00
parent 291cb2b5b6
commit f7afa94c9e
2 changed files with 6 additions and 4 deletions

View File

@@ -94,8 +94,9 @@ async function improveCommitMessagesWithRebase(commits: CommitsArray) {
});
// openAI errors with 429 code (too many requests) so lets sleep a bit
outro('Sleeping for 1s');
await sleep(1000 + 100 * i);
const sleepFor = 1000 + 100 * i;
outro(`Sleeping for ${sleepFor}`);
await sleep(sleepFor);
}
return improvedMessagesBySha;