{"id":15647057,"url":"https://github.com/cssxsh/mirai-new-bing","last_synced_at":"2025-06-19T14:34:16.498Z","repository":{"id":143506700,"uuid":"615657053","full_name":"cssxsh/mirai-new-bing","owner":"cssxsh","description":"Mirai Console New Bing 插件","archived":false,"fork":false,"pushed_at":"2023-08-10T10:31:15.000Z","size":1045,"stargazers_count":47,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-30T12:35:14.447Z","etag":null,"topics":["mirai","mirai-console","new-bing"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cssxsh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-18T09:44:22.000Z","updated_at":"2025-04-28T07:03:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"732bfefe-1971-428b-89a8-304372cdeb4a","html_url":"https://github.com/cssxsh/mirai-new-bing","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/cssxsh/mirai-new-bing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fmirai-new-bing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fmirai-new-bing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fmirai-new-bing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fmirai-new-bing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cssxsh","download_url":"https://codeload.github.com/cssxsh/mirai-new-bing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fmirai-new-bing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260769437,"owners_count":23060100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mirai","mirai-console","new-bing"],"created_at":"2024-10-03T12:16:40.106Z","updated_at":"2025-06-19T14:34:11.464Z","avatar_url":"https://github.com/cssxsh.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Mirai New Bing](https://github.com/cssxsh/mirai-new-bing)\n\n\u003e 基于 Mirai Console 的 New Bing Chat Bot 插件\n\n[![maven-central](https://img.shields.io/maven-central/v/xyz.cssxsh.mirai/mirai-new-bing)](https://search.maven.org/artifact/xyz.cssxsh.mirai/mirai-new-bing)\n[![build](https://github.com/cssxsh/mirai-new-bing/actions/workflows/build.yml/badge.svg)](https://github.com/cssxsh/mirai-new-bing/actions/workflows/build.yml)\n\n**使用前应该查阅的相关文档**\n\n*   [User Manual](https://github.com/mamoe/mirai/blob/dev/docs/UserManual.md)\n*   [Permission Command](https://github.com/mamoe/mirai/blob/dev/mirai-console/docs/BuiltInCommands.md#permissioncommand)\n\n由于微软还未在中国大陆开放 `New Bing` 的使用，以国内IP去访问 `Bing` 会导致跳转 `404` 而无法使用  \n~~故需要配置代理 `proxy`~~  \n~~尝试使用新的API，目前测试的结果表明不需要代理~~ (23/03/20)  \n新的API也开始 404 了， 需要配置代理了 (23/03/23)  \n`Max send count 20 exceeded. Consider increasing the property maxSendCount if more is required.` 说明代理配置有问题 (23/03/31)\n\n使用前请[赋予权限](https://github.com/mamoe/mirai/blob/dev/mirai-console/docs/BuiltInCommands.md#permissioncommand)！！！！！！  \n权限ID会在日志里给出！！！！！！\n\n~~New Bing 网页 Cookie 最关键是 `_U` 这个 Cookie, 如果没有，可以访问 \u003chttps://www.bing.com/new\u003e 刷新一下~~  \nNew Bing 加入了新的 Cookie 检测, 所以需要全部 cookie 内容  \n![cookie.png](.github/cookie.png)\n由于内容比较多，所以要求将其写入文件 `data/xyz.cssxsh.mirai.plugin.new-bing/cookie.txt`\n\n出现 [`Sorry, you need to login first to access this service.`](https://github.com/cssxsh/mirai-new-bing/issues/1) 表示Cookie不可用  \n原因可能是是 `IP` 和 `Cookie` 不匹配（浏览器和插件没有使用同一个代理，或者同一个网络）。\n\n推荐一下 `https://github.com/chathub-dev/chathub` 这个 Chrome 插件，可以~~免代理~~直接使用 `New Bing`  \n你可以用它来抓 `Cookie`, 保证 `Cookie` 可用性。\n\n## 效果\n\n![example](.github/screenshot.png)\n\n## 配置\n\n`bing.yml` 基本配置\n\n*   `proxy` 代理, 协议支持 `socks` 和 `http`, 例如 `socks://127.0.0.1:7890`\n*   `timeout` API超时时间\n*   `chat_prefix` 聊天触发前缀, 默认 `bing`\n*   `default_style` 默认使用的风格, 可选择值有 `Balanced`, `Creative`, `Precise`\n*   `reload_prefix` 触发配置重置，`bing-reload`\n*   `balanced_prefix` 聊天(平衡)触发前缀，`bing-balanced`\n*   `creative_prefix` 聊天(创意)触发前缀，`bing-creative`\n*   `precise_prefix` 聊天(精确)触发前缀，`bing-precise`\n*   `reset_prefix` 触发聊天会话重置，`bing-reset`\n*   `chat_expires_in` 聊天会话过期时间，过期后自动重置 单位秒\n*   `show_source_attributions` 输出来源信息（URL), 默认 `true`\n\n### 参数\n\n`bing.yml` - `options` 机器人参数配置\n\n由于 `New Bing` 并不存在公开的官方文档，所以这一项有具体作用并不是很清楚  \n你可以到 [discussions#4](https://github.com/cssxsh/mirai-new-bing/discussions/4) 交流讨论\n\n*   `deepleo` 用途不明，感觉是增加对话深度的\n*   `enable_debug_commands`\n*   `disable_emoji_spoken_text`\n*   `enablemm`\n*   `galileo` 对应模式 `Balanced` (请勿加入 options, 它会在模式指定的时候加入)\n*   `h3imaginative` 对应模式 `Creative` (请勿加入 options, 它会在模式指定的时候加入)\n*   `h3precise` 对应模式 `Precise` (请勿加入 options, 它会在模式指定的时候加入)\n*   `nlu_direct_response_filter` \n*   `responsible_ai_policy_235`\n*   `wlthrottle`\n*   `cachewriteext`\n*   `e2ecachewrite`\n*   `dv3sugg`\n*   `clgalileo`\n\n## 安装\n\n### MCL 指令安装\n\n**请确认 mcl.jar 的版本是 2.1.0+**  \n`./mcl --update-package xyz.cssxsh.mirai:mirai-new-bing --channel maven-stable --type plugins`\n\n### 手动安装\n\n1.  从 [Releases](https://github.com/cssxsh/mirai-new-bing/releases) 或者 [Maven](https://repo1.maven.org/maven2/xyz/cssxsh/mirai/mirai-new-bing/) 下载 `mirai2.jar`\n2.  将其放入 `plugins` 文件夹中\n\n## [爱发电](https://afdian.net/@cssxsh)\n\n![afdian](.github/afdian.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssxsh%2Fmirai-new-bing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcssxsh%2Fmirai-new-bing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssxsh%2Fmirai-new-bing/lists"}