Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rizzlogy/bardie
A powerful library for interacting with the Google AI
https://github.com/rizzlogy/bardie
axios cli google-bard google-gemini-ai google-gemini-pro nodejs swaggerui
Last synced: 2 months ago
JSON representation
A powerful library for interacting with the Google AI
- Host: GitHub
- URL: https://github.com/rizzlogy/bardie
- Owner: rizzlogy
- License: gpl-3.0
- Created: 2023-11-06T02:50:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-19T15:22:33.000Z (10 months ago)
- Last Synced: 2024-11-14T10:41:33.503Z (2 months ago)
- Topics: axios, cli, google-bard, google-gemini-ai, google-gemini-pro, nodejs, swaggerui
- Language: JavaScript
- Homepage: https://bard.rizzy.eu.org/
- Size: 447 KB
- Stars: 4
- Watchers: 1
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bardie Installation
**📂 Normal Installation**
```bash
npm i bardie
```#
**🔲 Installation For CLI**
```bash
npm i bardie -g
```# Simple Examples
### **Example Question To Send Bard API Request**
#
```js
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:
```json
{
"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**
#
```js
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:
```json
{
"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](https://github.com/rizzlogy/bardie/issues/new)#### ID
> Jika Ada Bug, Silahkan Buat [Issues](https://github.com/rizzlogy/bardie/issues/new)#
**[Bardie](https://npmjs.com/bardie) also Supports Typescript & EsModule! 🥳**