randydev commited on
Commit
7d76bf3
·
verified ·
1 Parent(s): 6a53ab9

Update googleGemini.js

Browse files
Files changed (1) hide show
  1. 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}`);