randydev commited on
Commit
19fce0b
·
verified ·
1 Parent(s): 09f25e2

Update googleGemini.js

Browse files
Files changed (1) hide show
  1. googleGemini.js +0 -5
googleGemini.js CHANGED
@@ -2,14 +2,9 @@ import { GoogleGenerativeAI } from "@google/generative-ai";
2
 
3
  import * as config from './config.js';
4
 
5
- if (!config.GoogleAPIKey) {
6
- throw new Error("Missing variable: GOOGLE_API_KEY");
7
- }
8
-
9
  const genAI = new GoogleGenerativeAI(config.GoogleAPIKey);
10
 
11
  /**
12
- * Generate a response using the Gemini AI model.
13
  * @param {string} prompt - The input string for the model.
14
  * @returns {Promise<string>} The generated response text.
15
  */
 
2
 
3
  import * as config from './config.js';
4
 
 
 
 
 
5
  const genAI = new GoogleGenerativeAI(config.GoogleAPIKey);
6
 
7
  /**
 
8
  * @param {string} prompt - The input string for the model.
9
  * @returns {Promise<string>} The generated response text.
10
  */