@nishantapps/node-gemini
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

Installation

Open command prompt and type:

npm i @nishantapps/node-gemini

Usage

import { Gemini } from '@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

Contributers

Thanks goes to these wonderful people (🤗):

npmnishantsharma
npmnishantsharma
npmnishantsharma
Alpha (Programer)

Readme

Keywords

Package Sidebar

Install

npm i @nishantapps/node-gemini

Weekly Downloads

1

Version

2.0.0

License

Apache-2.0

Unpacked Size

16.4 kB

Total Files

5

Last publish

Collaborators

  • nishantapps