mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-01-12 15:18:24 -05:00
build
This commit is contained in:
@@ -27938,6 +27938,7 @@ async function improveCommitMessagesWithRebase(commits) {
|
||||
let improvedMessagesBySha = {};
|
||||
const step = 3;
|
||||
for (let i2 = 0; i2 < improvePromises.length; i2 + step) {
|
||||
console.log({ i: i2, improvedMessagesBySha });
|
||||
const promises = improvePromises.slice(i2, step);
|
||||
await Promise.all(promises).then((results) => {
|
||||
return results.reduce((acc, improvedMsg, i3) => {
|
||||
|
||||
@@ -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