mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
build
This commit is contained in:
@@ -27936,7 +27936,7 @@ async function improveCommitMessagesWithRebase(commits) {
|
||||
(commit) => generateCommitMessageByDiff(commit.diff)
|
||||
);
|
||||
async function improveMessagesInChunks() {
|
||||
const chunkSize = improvePromises.length % 2 === 0 ? 2 : 3;
|
||||
const chunkSize = improvePromises.length % 2 === 0 ? 4 : 3;
|
||||
let improvedMessagesBySha2 = {};
|
||||
for (let i2 = 0; i2 < improvePromises.length; i2 += chunkSize) {
|
||||
console.log({ i: i2, improvedMessagesBySha: improvedMessagesBySha2 });
|
||||
|
||||
@@ -73,7 +73,7 @@ async function improveCommitMessagesWithRebase(commits: CommitsArray) {
|
||||
|
||||
// send chunks of 3 diffs in parallel, because openAI restricts too many requests at once with 429 error
|
||||
async function improveMessagesInChunks() {
|
||||
const chunkSize = improvePromises.length % 2 === 0 ? 2 : 3;
|
||||
const chunkSize = improvePromises.length % 2 === 0 ? 4 : 3;
|
||||
let improvedMessagesBySha: MessageBySha = {};
|
||||
for (let i = 0; i < improvePromises.length; i += chunkSize) {
|
||||
console.log({ i, improvedMessagesBySha });
|
||||
|
||||
Reference in New Issue
Block a user