diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index df5fc3a6..2af50cca 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -278,6 +278,10 @@ function sidebarGuide() { text: '错误码表', link: '/guide/faq/error_code', }, + { + text: '代理设置', + link: '/guide/faq/set_proxy', + }, ], }, ]; diff --git a/docs/guide/configure-model-platform/bing-chat.md b/docs/guide/configure-model-platform/bing-chat.md index 026712ce..386e5b3a 100644 --- a/docs/guide/configure-model-platform/bing-chat.md +++ b/docs/guide/configure-model-platform/bing-chat.md @@ -10,9 +10,67 @@ New Bing 是基于 GPT 4 的聊天机器人,可以实现对话式问答。并 在短期内我们不会适配 New Bing 的画图功能。 ::: - ## 安装 前往插件市场,搜索 `chatluna-newbing-adapter`,安装即可。 -![images](../../public/images/plugin_newbing_adapter_1.png) \ No newline at end of file +![images](../../public/images/plugin_newbing_adapter_1.png) + +## 配置 + +在配置之前,请先确认你的 Bing 账号具有 New Bing 的访问权限,并且目前可以使用当前的浏览器正常访问 New Bing。 + +如果你的 Koishi 部署在国内环境,请你为 ChatLuna 设置插件代理。 + +::: tip 提示 +未来我们可能会录制官方教程,敬请期待。 +::: + +打开 `Microsoft Edge` 浏览器,然后键入 `https://www.bing.com` 打开 bing 官网。 + +![images](../../public/images/plugin_newbing_cookie_1.png) + +按 `f12`,打开开发者工具,并转到网络选项卡。 + +![images](../../public/images/plugin_newbing_cookie_2.png) + +点击上方的红色监听按钮取消监听,在点击一次监听按钮然后立即按 `f5` 刷新网页。等待几秒后点击监听按钮取消监听。 + +此时滚动鼠标,将监听列表拉至最上,可以看到 `bing.com` 的请求,点开它。 + +![images](../../public/images/plugin_newbing_cookie_3.png) + +打开后会自动为我们进入标头选项卡。里面含有 `常规`,`响应标头`,`请求标头` 三大项,我们将前两项折叠,从 `请求标头` 内寻找 `cookie`。 + +![images](../../public/images/plugin_newbing_cookie_4.png) + +在 `请求标头` 内找到 `cookie` 项,滚动鼠标以全选 cookie,将其复制。此时你已经复制了使用 New Bing 适配器所需 cookie。 + +![images](../../public/images/plugin_newbing_cookie_5.png) + +让我们回到插件的配置页。当你新建插件后,插件默认会提供一个 cookie 配置项(即 cookies[0]),将我们刚才复制的 cookie 粘贴进去。 + +![images](../../public/images/plugin_newbing_pic2.png) + +记得点击右上角的保存按钮。 + +## 使用 + +在 New Bing 适配器的配置页面,点击运行按钮,如无误,你应该看不到任何错误 log,那即可转到 ChatLuna 的主插件页面。 + +在主插件页面,下划到 [模版房间选项](../useful-configurations.md#模版房间选项),查看 [defaultModel](../useful-configurations.md#defaultmodel) 的选项里是否含有符合 `bing/xxx` 格式的模型,如果有,则说明 New Bing 适配器已经成功的运行。 + +但我们仍未确认 New Bing 适配器是否成功运行。 + +因此我们需要新建一个房间,使用 `chatluna.room.create -m bing/creative -p chatgpt -n test-bing-adapter -c chat -v private` 指令来创建一个使用了 New Bing 适配器的房间。 + +![images](../../public/images/plugin_newbing_pic3.png) + +让我们尝试和模型对话。 +只要能正常对话,就说明你成功的接入了 New Bing 适配器。 + +![images](../../public/images/plugin_newbing_pic4.png) + +别忘了在测试完成后调用 `chatluna.room.delete test-bing-adapter` 指令删除测试房间。 + +![images](../../public/images/plugin_newbing_pic5.png) \ No newline at end of file diff --git a/docs/public/images/plugin_newbing_cookie_1.png b/docs/public/images/plugin_newbing_cookie_1.png new file mode 100644 index 00000000..6d82b664 Binary files /dev/null and b/docs/public/images/plugin_newbing_cookie_1.png differ diff --git a/docs/public/images/plugin_newbing_cookie_2.png b/docs/public/images/plugin_newbing_cookie_2.png new file mode 100644 index 00000000..f70a9615 Binary files /dev/null and b/docs/public/images/plugin_newbing_cookie_2.png differ diff --git a/docs/public/images/plugin_newbing_cookie_3.png b/docs/public/images/plugin_newbing_cookie_3.png new file mode 100644 index 00000000..b315e1de Binary files /dev/null and b/docs/public/images/plugin_newbing_cookie_3.png differ diff --git a/docs/public/images/plugin_newbing_cookie_4.png b/docs/public/images/plugin_newbing_cookie_4.png new file mode 100644 index 00000000..ed38ad2b Binary files /dev/null and b/docs/public/images/plugin_newbing_cookie_4.png differ diff --git a/docs/public/images/plugin_newbing_cookie_5.png b/docs/public/images/plugin_newbing_cookie_5.png new file mode 100644 index 00000000..66486a65 Binary files /dev/null and b/docs/public/images/plugin_newbing_cookie_5.png differ diff --git a/docs/public/images/plugin_newbing_pic2.png b/docs/public/images/plugin_newbing_pic2.png new file mode 100644 index 00000000..107cb0dc Binary files /dev/null and b/docs/public/images/plugin_newbing_pic2.png differ diff --git a/docs/public/images/plugin_newbing_pic3.png b/docs/public/images/plugin_newbing_pic3.png new file mode 100644 index 00000000..244aa75b Binary files /dev/null and b/docs/public/images/plugin_newbing_pic3.png differ diff --git a/docs/public/images/plugin_newbing_pic4.png b/docs/public/images/plugin_newbing_pic4.png new file mode 100644 index 00000000..530f669d Binary files /dev/null and b/docs/public/images/plugin_newbing_pic4.png differ diff --git a/docs/public/images/plugin_newbing_pic5.png b/docs/public/images/plugin_newbing_pic5.png new file mode 100644 index 00000000..3575c46f Binary files /dev/null and b/docs/public/images/plugin_newbing_pic5.png differ