Update googleGemini.js
Browse files- googleGemini.js +1 -1
googleGemini.js
CHANGED
@@ -24,7 +24,7 @@ async function GeminiResponse(prompt) {
|
|
24 |
const result = await model.generateContent(prompt);
|
25 |
console.log("Response:", result.response.candidates)
|
26 |
const text = result.response.candidates[0]?.content;
|
27 |
-
console.log("Results text:", text)
|
28 |
return text || "No response content";
|
29 |
} catch (e) {
|
30 |
console.error(`Error in GeminiResponse: ${e.message}`);
|
|
|
24 |
const result = await model.generateContent(prompt);
|
25 |
console.log("Response:", result.response.candidates)
|
26 |
const text = result.response.candidates[0]?.content;
|
27 |
+
console.log("Results text:", text.parts)
|
28 |
return text || "No response content";
|
29 |
} catch (e) {
|
30 |
console.error(`Error in GeminiResponse: ${e.message}`);
|