Socket
Book a DemoInstallSign in
Socket

edgegpt

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edgegpt

latest
Source
npmnpm
Version
0.0.12
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 03 Mar 2023

Did you know?

Socket

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