Skip to content

palm-ai-helper is a Node.js library that provides a simple interface for interacting with the Google Generative Language API for conversational generation. It simplifies the process of sending queries to the DiscussService of the Google Generative Language API.

License

Notifications You must be signed in to change notification settings

anups1ngh/Palm-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaLM AI Helper Demo

Introduction

palm-ai-helper is a Node.js library that provides a simple interface for interacting with the Google Generative Language API for conversational generation. It simplifies the process of sending queries to the DiscussService of the Google Generative Language API.

Installation

To use palm-ai-helper, you can install it via npm:

npm i palm-ai-helper

Usage

Configuration

Before using Palm, make sure to obtain your API key from Google Generative AI API.

Quick Start

const Palm = require("palm-ai-helper");
const Palm.setAPIKey('YOUR_API_KEY');

async function test(){
    await palm.askAI('how to make pizza? ').then(result => console.log(result));
    await palm.askAI('what will happend if i throw it in water?').then(result => console.log(result));
}
test();

License


MIT License

About

palm-ai-helper is a Node.js library that provides a simple interface for interacting with the Google Generative Language API for conversational generation. It simplifies the process of sending queries to the DiscussService of the Google Generative Language API.

Topics

Resources

License

Stars

Watchers

Forks