256 | }
257 | return parts;
258 | };
259 | var _Gemini = class _Gemini {
260 | constructor(key, options = {}) {
261 | this.getTextObject = (response) => response.candidates[0].content.parts[0];
^
TypeError: undefined is not an object (evaluating 'response.candidates[0].content.parts')
at /Users/danew/development/github/SaneFYI/dbjs/node_modules/gemini-ai/dist/index.mjs:261:63
at /Users/danew/development/github/SaneFYI/dbjs/node_modules/gemini-ai/dist/index.mjs:275:23
Occasionally when calling
gemini.askthe response throws the following error:gemini-ai/src/index.ts
Line 282 in 5f843df