This commit is contained in:
di-sukharev
2023-05-20 16:00:29 +08:00
parent 7f83ff9943
commit 1867c96f22
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ async function improveCommitMessagesWithRebase(
// send chunks of diffs in parallel, because openAI restricts too many requests at once with 429 error
async function improveMessagesInChunks() {
const chunkSize = diffs!.length % 2 === 0 ? 2 : 3;
const chunkSize = 1;
outro(`Improving commit messages with GPT in chunks of ${chunkSize}.`);
const improvePromises = diffs!.map((commit) =>
generateCommitMessageByDiff(commit.diff)