Node Gemini: A Fast and Easy Way to Add AI to Your Projects

Node Gemini | A perfect • fast module to get AI to your projects


Installation

Open command prompt and type:

npm i @nishantapps/node-gemini

Usage

const { Gemini } = require('@nishantapps/node-gemini');

// Initialize Gemini with API keys and optional parameters
Gemini.initialize(apiKey, makersuiteKey, temperature, topP, topK, maxOutputTokens);
const question = "What is the meaning of life?";
Gemini.ask(question)
    .then((response) => {
        console.log(response);
    })
    .catch((error) => {
        console.error(error);
    });

Faq:

How to get key?

--> Go to https://makersuite.google.com and get it from there


Download Details:

Author: Nishantapps
Source Code: https://github.com/nishantapps/node-gemini 
License: Apache-2.0 license

#ai #node 

Node Gemini: A Fast and Easy Way to Add AI to Your Projects
1.55 GEEK