Skip to content

Commit 22dd81c

Browse files
bypass gemini call for debugging purposes
1 parent 7e5442c commit 22dd81c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/actions/auto-pr-description/generate_pr_description.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ ${diffContent}`;
159159
*/
160160
async function callGeminiAPI(prompt, apiKey) {
161161
console.log(`Sending prompt with an estimated ${estimateTokens(prompt)} tokens`);
162+
return 'gemini'; /*
162163
const response = await fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key=${apiKey}`, {
163164
method: 'POST',
164165
headers: { 'Content-Type': 'application/json' },
@@ -193,6 +194,7 @@ async function callGeminiAPI(prompt, apiKey) {
193194
}
194195
195196
return json.candidates[0].content.parts[0].text;
197+
*/
196198
}
197199

198200
/**

0 commit comments

Comments
 (0)