Skip to content

Commit 70f4e42

Browse files
jsDoc (setTinyGoogleAi) fixed.
1 parent f1558f5 commit 70f4e42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tiny-ai-api",
33
"description": "A customizable and extensible client api for managing conversations and AI interactions, currently supporting the **Google Gemini** API — with flexibility to support any similar AI APIs.",
4-
"version": "1.0.6",
4+
"version": "1.1.0",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",
77
"types": "./dist/index.d.mts",

src/services/Google.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import TinyAiInstance from '../base.mjs';
1111
* @param {string} GEMINI_API_KEY - The API key for Google Gemini.
1212
* @param {string} [MODEL_DATA='gemini-2.0-flash'] - The model to use (default is 'gemini-2.0-flash').
1313
*/
14-
export const setTinyGoogleAi = (tinyGoogleAI, GEMINI_API_KEY, MODEL_DATA = 'gemini-2.0-flash') => {
14+
export function setTinyGoogleAi(tinyGoogleAI, GEMINI_API_KEY, MODEL_DATA = 'gemini-2.0-flash') {
1515
const apiUrl = 'https://generativelanguage.googleapis.com/v1beta';
1616
tinyGoogleAI.setApiKey(GEMINI_API_KEY);
1717
tinyGoogleAI.setModel(MODEL_DATA);
@@ -826,7 +826,7 @@ export const setTinyGoogleAi = (tinyGoogleAI, GEMINI_API_KEY, MODEL_DATA = 'gemi
826826

827827
// Complete
828828
return tinyGoogleAI;
829-
};
829+
}
830830

831831
/**
832832
* Creates and configures a new TinyAiInstance that is set up with the Google Gemini API.

0 commit comments

Comments
 (0)