Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Latest commit

 

History

History
89 lines (58 loc) · 2.43 KB

README.zh-CN.md

File metadata and controls

89 lines (58 loc) · 2.43 KB

Bing Bing

Edge GPT

新必应的聊天功能的逆向工程

npm version

English | 简体中文

快速开始

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

参数:

  • --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

模块用法

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

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

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

配置

配置项使用 unjs/c12 自动从 cwd 中加载。 你可以使用 edgegpt.config.json, edgegpt.config.{ts,js,mjs,cjs} 或者 .edgegptrc.

有关可用选项和默认值,请参见 ./src/config.ts

协议

用 💛 发电

根据 MIT License 发布

致谢