bardie
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Bardie



Bardie Installation

📂 Normal Installation

npm i bardie

🔲 Installation For CLI

npm i bardie -g

Simple Examples

Example Question To Send Bard API Request

const { Bardie } = require("bardie");
const bard = new Bardie();

async function askQuestion() {
  try {
    let result = await bard.question({ ask: "Keep it simple... What is Google Bard?" });
    console.log(result);
  } catch (error) {
    console.error("Error:", error.message);
  }
};

askQuestion();
Response:
{
  "content": "In a nutshell, I'm Google's AI helper you can chat with. I can answer your questions, generate creative text formats, and help you with various tasks in a simple and informative way. Think of me as a friendly AI companion ready to assist you anytime!",
  "status": 200,
  "creator": "RizzyFuzz"
}

Example Question With Image To Send Bard API Request

const { Bardie } = require("bardie");
const bard = new Bardie();

async function askQuestionWithImage() {
 try {
  let result = await bard.question({
   ask: "Keep it simple... What is this image?",
   image: "https://i.imgur.com/OgoPlnf.png"
  });
  console.log(result);
 } catch (error) {
  console.error("Error:", error.message);
 }
};

askQuestionWithImage();
Response:
{
  "content": "The image you sent me is the logo of Bard, a large language model chatbot developed by Google AI. The logo consists of two colorful stars, one in red and orange and the other in blue and green, on a gray background. The stars are meant to represent creativity and knowledge, while the gray background represents the real world. I hope this helps!",
  "status": 200,
  "creator": "RizzyFuzz"
}

Note

EN

If there are bugs, please create Issues

ID

Jika Ada Bug, Silahkan Buat Issues

Bardie also Supports Typescript & EsModule! 🥳

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.03latest

Version History

VersionDownloads (Last 7 Days)Published
2.1.03
2.0.01
1.2.0-stable1
1.1.0-stable1
1.1.016
1.0.00

Package Sidebar

Install

npm i bardie

Weekly Downloads

22

Version

2.1.0

License

GPL-3.0

Unpacked Size

46.2 kB

Total Files

9

Last publish

Collaborators

  • rizzlogy