- Notifications
You must be signed in to change notification settings - Fork3
a Node.js package inspired by the Python version [EdgeGPT](https://github.com/acheong08/EdgeGPT) repository.
lonelam/EdgeGPTJs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
English |简体中文
Welcome to EdgeGPTJs, a Node.js package inspired by the Python versionEdgeGPT repository. This package allows you to reverse engineer the chat feature of the new version of Bing, making it easier than ever to leverage the power of Bing's chat capabilities within your own projects.
- Reverse engineer the chat feature of the new version of Bing
- Easy-to-use API with thorough documentation
- Highly customizable and extendable
- CLI tools by demo
- exportable api by npm package
- one-click remote deployment inspired byChatGPT-Next-Web
- integrate it withChatGPT-Next-Web
- A Microsoft Account with early access tohttps://bing.com/chat (Required)
- Required in a supported country with New Bing (Chinese mainland VPN required)
Install the latest version of Microsoft Edge
Alternatively, you can use any browser and set the user-agent to look like you're using Edge (e.g.,
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.51
). You can do this easily with an extension like "User-Agent Switcher and Manager" forChrome andFirefox.Openbing.com/chat
If you see a chat feature, you are good to go
use ENVIRONMENT_VARIABLE to pass cookie jar file.
export COOKIE_FILE=/path/to/cookie.jsonnpx edgegptjs
or use
npx edgegptjs --cookie-file=cookie.json
To get started with EdgeGPTJs, import the package and create a new instance ofChatbot
:
const{ Chatbot}=require('edgegptjs');constbot=newChatbot(args.cookiePath);awaitbot.chatHubInitialization;constresponse=awaitbot.ask("What's the result of 1+1?");console.log(`Bot:${response}`);
For a detailed explanation of the API and available methods, please refer to thedocumentation.
We welcome contributions from the community. If you'd like to contribute to EdgeGPTJs, please read ourcontributing guidelines to get started.
EdgeGPTJs is released under theMIT License.
About
a Node.js package inspired by the Python version [EdgeGPT](https://github.com/acheong08/EdgeGPT) repository.