Giter Club home page Giter Club logo

bardie's Introduction

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! ๐Ÿฅณ

bardie's People

Contributors

rizzlogy avatar zoheb-malik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bardie's Issues

Bardie Stable Now!

Apologies to all Bardie users who have relied on this platform for so long. Bardie is now back in action after a period of dormancy. I've been occupied with school assignments and unable to dedicate sufficient time to fixing Bardie's backend API.

Additionally, I'm currently working on obtaining generated images from Bardie's API. If anyone is interested in contributing to the improvement of this API, please reach out to me on Instagram (instagram.com/rizzlogy_).

Best regards,
RizzyFuzz.

Percakapan berkelanjutan

untuk api yang https://bard.rizzy.eu.org/ apakah ada endpoint untuk percakapan berkelanjutan?
Contoh:
Q: Kenapa air laut asin?
A: Air laut asin karena .....
Q: Apa bedanya dengan air hujan?
A: Air laut dan air hujan memeliki perbedaan ....

terima kasih

Error

Error bang

Error: Error: Request failed with status code 500
at Bardie.question (/app/node_modules/bardie/lib/bardie.js:67:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Object.neoxr.create.usage [as async] (/app/plugins/exec.js:26:16)

Error 500 (__Secure-1PSID or __Secure-3PSID value)

{
"content": "Authentication Error! Please make sure to initialize with the correct __Secure-1PSID or __Secure-3PSID value. Check your credentials and try again.",
"status": 500,
"creator": "RizzyFuzz"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.