Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

a Node.js package inspired by the Python version [EdgeGPT](https://github.com/acheong08/EdgeGPT) repository.

NotificationsYou must be signed in to change notification settings

lonelam/EdgeGPTJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English |简体中文npm versionLicense: MIT

EdgeGPTJs Logo

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.

Table of Contents

Features

  • Reverse engineer the chat feature of the new version of Bing
  • Easy-to-use API with thorough documentation
  • Highly customizable and extendable

Roadmap

Requirements

  • A Microsoft Account with early access tohttps://bing.com/chat (Required)
  • Required in a supported country with New Bing (Chinese mainland VPN required)

Checking access (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

Getting authentication (Required)

  • Install the cookie editor extension forChrome orFirefox

  • Go tobing.com

  • Open the extension

  • Click "Export" on the bottom right, then "Export as JSON" (This saves your cookies to clipboard)

  • Paste your cookies into a filecookies.json

Prompt Tool Usage

use ENVIRONMENT_VARIABLE to pass cookie jar file.

export COOKIE_FILE=/path/to/cookie.jsonnpx edgegptjs

or use

npx edgegptjs --cookie-file=cookie.json

Library Usage

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.

Contributing

All Contributors

We welcome contributions from the community. If you'd like to contribute to EdgeGPTJs, please read ourcontributing guidelines to get started.

License

EdgeGPTJs is released under theMIT License.

Star History

About

a Node.js package inspired by the Python version [EdgeGPT](https://github.com/acheong08/EdgeGPT) repository.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp