mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-01-15 00:28:30 -05:00
build
This commit is contained in:
@@ -75,6 +75,7 @@ async function improveCommitMessagesWithRebase(commits: CommitsArray) {
|
||||
// send batches of 3 diffs in parallel, because openAI restricts too many requests at once with 429 error
|
||||
const step = 3;
|
||||
for (let i = 0; i < improvePromises.length; i + step) {
|
||||
console.log({ i, improvedMessagesBySha });
|
||||
const promises = improvePromises.slice(i, step);
|
||||
await Promise.all(promises)
|
||||
.then((results) => {
|
||||
|
||||
Reference in New Issue
Block a user