Update googleGemini.js
Browse files- 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 |
*/
|