GithubHelp home page GithubHelp logo

hzzy2o / edgegpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kejunmao/edgegpt

0.0 0.0 0.0 511 KB

The reverse engineering the chat feature of the new version of Bing.新必应聊天功能的逆向工程

License: MIT License

JavaScript 7.74% TypeScript 92.26%

edgegpt's Introduction

Bing Bing

Edge GPT

The reverse engineering the chat feature of the new version of Bing

npm version

English | 简体中文

Quick Start

npx edgegpt

CLI Usage

npx edgegpt -h
Usage: edgegpt [options]

        !reset Reset the conversation
        !exit Exit the program
        !options Set request options

Options:
  -f, --cookie-file  Cookie file path                                                          [default: cookie.json]
      --stream       Used stream mode                                                       [boolean] [default: true]
  -h, --help         Show help                                                                              [boolean]
  -v, --version      Show version number                                                                    [boolean]
      --options      Request options  [array] [default: deepleo,enable_debug_commands,disable_emoji_spoken_text,enablemm]
Examples:
  edgegpt -f cookie.json

Repo: https://github.com/kejunmao/edgegpt
By: KeJun
License: MIT

Arguments:

  • --stream: Used stream mode, true will be used as default, you can use --no-stream to set false.
  • -f, --cookie-file: Cookie json file path, cookie.json will be used as default.
  • --options: Request options, "deepleo", "enable_debug_commands", "disable_emoji_spoken_text", "enablemm" will be used as default, you can find more options here

Module Usage

import { ChatBot, loadEdgeGPTConfig } from "edgegpt";
const config = await loadEdgeGPTConfig();

const chatBot = new ChatBot(config);
await chatBot.create();

console.log(await chatBot.askAsync("hello!"));

Configuration

Configuration is loaded by unjs/c12 from cwd. You can use either edgegpt.config.json, edgegpt.config.{ts,js,mjs,cjs}, .edgegptrc.

See ./src/config.ts for available options and defaults.

💻 Development

  • Clone this repository
  • Enable Corepack using corepack enable (use npm i -g corepack for Node.js < 16.10)
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with 💛

Published under MIT License.

Acknowledgement

edgegpt's People

Contributors

kejunmao avatar zguolee avatar

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.