Socket
Socket
Sign inDemoInstall

@ibaraki-douji/bing-ai

Package Overview
Dependencies
12
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ibaraki-douji/bing-ai

Just a way to use Bing AI in NodeJS


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
629 kB
Created
Weekly downloads
 

Readme

Source

#Bing AI Simple Bing AI for NodeJS

Getting started

npm i @ibaraki-douji/bing-ai --save

Usage

Import the lib

const BingAI = require('@ibaraki-douji/bing-ai').default

Init the lib

const BingAI = require('@ibaraki-douji/bing-ai').default

const ai = new BingAI("_U=123456789;");

You can get the cookies from the devtools or with an exension like EditThisCookie. The cookies needs to be formated like this : cookieName=cookieValue; cookieName2=cookieValue2; The useful cookie name is _U. WIthout it bing will think you are not logged in and will not give you the access.

Create a conversation

const BingAI = require('@ibaraki-douji/bing-ai').default

const ai = new BingAI("_U=123456789;");

ai.createConversation().then((conversation) => {
    // do something with the conversation
})

Send a message to the conversation

ai.createConversation().then((conversation) => {
    conversation.sendMessage("Hello").then((response) => {
        // do something with the response
    })
})

Get a suggestion for your current message

const ai = new BingAI("_U=123456789;");

ai.suggest("Hello").then((suggestions) => {
    // do something with the suggestions
})

Exemple

To see a real exemple of the lib, check the lib/main.js file.

More Help and Support

Discord : Ibaraki Douji#1406

Keywords

FAQs

Last updated on 07 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc