We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3647d51 commit 02c5b78Copy full SHA for 02c5b78
1 file changed
index.js
@@ -37,8 +37,13 @@ async function callLLM(prompt) {
37
headers: { "Content-Type": "application/json" },
38
body: JSON.stringify({ contents: [{ parts: [{ text: prompt }] }] }),
39
});
40
+
41
const data = await res.json();
- return data.candidates?.[0]?.content?.parts?.[0]?.text || "Sorry, I couldn't generate a response.";
42
+ console.log("GEMINI RESPONSE:", JSON.stringify(data, null, 2));
43
44
+ return data?.candidates?.[0]?.content?.parts?.[0]?.text
45
+ || data?.candidates?.[0]?.output
46
+ || "Sorry, I couldn't generate a response.";
47
}
48
49
async function postComment(owner, repo, issueNumber, body) {
0 commit comments