Skip to content

Commit 7ff829a

Browse files
steveseguinactions-user
authored andcommitted
chore(ci): Update Gemini API model version
Updates the Gemini API model used by the commit enhancement script to the currently supported `gemini-2.5-flash` version. The previous `gemini-2.5-flash-preview-04-17` model is no longer active, ensuring continued functionality of the automated commit message refinement process within GitHub Actions workflows. [auto-enhanced]
1 parent 082b25b commit 7ff829a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/scripts/enhance-commits.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ try {
3232
throw new Error('GEMINI_API_KEY environment variable is not set.');
3333
}
3434
const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_KEY);
35-
model = genAI.getGenerativeModel({ model: 'gemini-2.5-flash-preview-04-17' }); // Change to a version now supported.
35+
model = genAI.getGenerativeModel({ model: 'gemini-2.5-flash' }); // Change to a version now supported.
3636
log('info', 'Gemini API initialized successfully.');
3737
} catch (error) {
3838
log('error', 'Failed to initialize Gemini API', { error: error.message });
@@ -731,4 +731,4 @@ main().catch(error => {
731731
stack: error.stack
732732
});
733733
process.exit(1);
734-
});
734+
});

0 commit comments

Comments
 (0)