chase535 commited on
Commit
92b99f6
·
1 Parent(s): 34afeec

同步上游更新

Browse files
Files changed (3) hide show
  1. Dockerfile +3 -1
  2. README.md +20 -16
  3. src/components/user-menu.tsx +0 -13
Dockerfile CHANGED
@@ -20,7 +20,9 @@ WORKDIR $HOME/app
20
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
21
  COPY --chown=user . $HOME/app/
22
 
23
- #RUN npm install && npm run build
 
 
24
 
25
  RUN rm -rf src
26
 
 
20
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
21
  COPY --chown=user . $HOME/app/
22
 
23
+ RUN if [ ! -f ".next/routes-manifest.json" ]; then \
24
+ npm install && npm run build; \
25
+ fi
26
 
27
  RUN rm -rf src
28
 
README.md CHANGED
@@ -15,7 +15,7 @@ Bingo,一个让你呼吸顺畅 New Bing。
15
  </div>
16
 
17
  ## 重要说明
18
- 为了应对日益严格的封锁,现已研发 Bingo 2.0,目前稳定性已经得到验证,详见:https://github.com/weaigc/bingo/tree/v2
19
 
20
  ## 演示站点
21
 
@@ -37,7 +37,6 @@ Bingo,一个让你呼吸顺畅 New Bing。
37
  - 支持 OpenAI 方式调用 [使用文档](./OPENAI.md)
38
 
39
  ## RoadMap
40
-
41
  - [x] 支持 wss 转发
42
  - [x] 支持一键部署
43
  - [x] 优化移动端展示
@@ -71,21 +70,11 @@ Bingo,一个让你呼吸顺畅 New Bing。
71
 
72
  - 触发器 中自定义访问域名。
73
 
74
- ### 如何获取 BING_COOKIE
75
-
76
- > 配置了 BING_COOKIE 意味着你将自己的账号共享给所有使用此服务的人,如果不需要免登录画图的功能,不建议设置此变量
77
-
78
- 打开 https://www.bing.com 并登录,然后访问 https://www.bing.com/turing/captcha/challenge ,通过人机校验(如果显示**无效域**,意味着需要自行准备梯子),然后
79
-
80
- ![BING_COOKIE](./docs/images/curl.png)
81
-
82
- > 复制出来的内容应该如下所示。确认格式无误后,打开 https://bing.github1s.tk/#dialog=%22settings%22 ,粘贴进去,点击“转成 BING_COOKIE 并复制”,然后从剪切板粘贴即可得到。(你也可以先在网页上进行验证)
83
-
84
-
85
  ### 部署其它平台
86
  <details>
87
  <summary>
88
- <del>由于其他平台目前遭到 New Bing 比较彻底的封杀,会遇到很多问题,不再做推荐,有需要的可以自行查看</del>
 
89
  V2 版本已解决此问题,详见: https://github.com/weaigc/bingo/tree/v2
90
  </summary>
91
 
@@ -109,14 +98,18 @@ V2 版本已解决此问题,详见: https://github.com/weaigc/bingo/tree/v2
109
  [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/weaigc/bingo)
110
  </details>
111
 
 
 
112
  ## 环境和依赖
113
 
114
  - Node.js >= 18
115
- - Bing AI 的[用户信息](#如何获取-BING_HEADER))
 
 
116
 
117
  ## 安装和使用
118
 
119
- > 本地部署需要你本机或服务器 IP 是国外 IP ,否则会无法连接到 New Bing。
120
 
121
  * 使用 Node 启动
122
 
@@ -188,10 +181,21 @@ Y3VybCAnaHR0cHM6Ly93d3cuYmluZy5jb20vdHVyaW5nL2NvbnZlcnNhdGlvbi9jcmVhdGUnIFwgICAt
188
  ```
189
  </details>
190
 
 
 
 
 
 
 
 
 
 
 
191
 
192
  ## 鸣谢
193
  - 感谢 [EdgeGPT](https://github.com/acheong08/EdgeGPT) 提供的代理 API 的方法。
194
  - 感谢 [Vercel AI](https://github.com/vercel-labs/ai-chatbot) 提供的基础脚手架和 [ChatHub](https://github.com/chathub-dev/chathub) [go-proxy-bingai](https://github.com/adams549659584/go-proxy-bingai) 提供的部分代码。
 
195
 
196
 
197
  ## 答疑及交流
 
15
  </div>
16
 
17
  ## 重要说明
18
+ 为了应对日益严格的封锁,现已研发 Bingo 2.0,目前稳定性已经得到验证,详见:https://github.com/weaigc/bingo/tree/v2 。如你自己有没有被封锁的 vps,则可以继续使用 Bingo 1.0。
19
 
20
  ## 演示站点
21
 
 
37
  - 支持 OpenAI 方式调用 [使用文档](./OPENAI.md)
38
 
39
  ## RoadMap
 
40
  - [x] 支持 wss 转发
41
  - [x] 支持一键部署
42
  - [x] 优化移动端展示
 
70
 
71
  - 触发器 中自定义访问域名。
72
 
 
 
 
 
 
 
 
 
 
 
 
73
  ### 部署其它平台
74
  <details>
75
  <summary>
76
+ <del>以下为已经被封杀的部署方式</del>
77
+
78
  V2 版本已解决此问题,详见: https://github.com/weaigc/bingo/tree/v2
79
  </summary>
80
 
 
98
  [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/weaigc/bingo)
99
  </details>
100
 
101
+
102
+
103
  ## 环境和依赖
104
 
105
  - Node.js >= 18
106
+ - New Bing 的[用户信息](#如何获取-BING_HEADER))
107
+ - 一台没有被微软封禁的 vps(需要自行测试)
108
+
109
 
110
  ## 安装和使用
111
 
112
+ > 本地部署需要你本机或服务器 IP 是国外 IP,且没有被微软封禁 ,否则无法正常使用 New Bing。
113
 
114
  * 使用 Node 启动
115
 
 
181
  ```
182
  </details>
183
 
184
+ ### 如何获取 BING_COOKIE
185
+
186
+ > 配置了 BING_COOKIE 意味着你将自己的账号共享给所有使用此服务的人,如果不需要免登录画图的功能,不建议设置此变量
187
+
188
+ 打开 https://www.bing.com 并登录,然后访问 https://www.bing.com/turing/captcha/challenge ,通过人机校验(如果显示**无效域**,意味着需要自行准备梯子),然后
189
+
190
+ ![BING_COOKIE](./docs/images/curl.png)
191
+
192
+ > 复制出来的内容应该如下所示。确认格式无误后,打开 https://bing.github1s.tk/#dialog=%22settings%22 ,粘贴进去,点击“转成 BING_COOKIE 并复制”,然后从剪切板粘贴即可得到。(你也可以先在网页上进行验证)
193
+
194
 
195
  ## 鸣谢
196
  - 感谢 [EdgeGPT](https://github.com/acheong08/EdgeGPT) 提供的代理 API 的方法。
197
  - 感谢 [Vercel AI](https://github.com/vercel-labs/ai-chatbot) 提供的基础脚手架和 [ChatHub](https://github.com/chathub-dev/chathub) [go-proxy-bingai](https://github.com/adams549659584/go-proxy-bingai) 提供的部分代码。
198
+ - 感谢 Happy-clo, SokWith, player868 等及群里的小伙伴的大力协助(名单不全,如有遗漏,欢迎指出)
199
 
200
 
201
  ## 答疑及交流
src/components/user-menu.tsx CHANGED
@@ -80,19 +80,6 @@ export function UserMenu() {
80
  </a>
81
  </DropdownMenuItem>
82
  <DropdownMenuSeparator />
83
- <DropdownMenuItem asChild>
84
- <a
85
- href="https://huggingface.co/spaces/hf4all/bingo"
86
- target="_blank"
87
- rel="noopener noreferrer"
88
- className="inline-flex items-center justify-between w-full gap-2 cursor-pointer"
89
- >
90
- 托管地址
91
- 🤗
92
- <IconExternalLink className="w-3 h-3 ml-auto" />
93
- </a>
94
- </DropdownMenuItem>
95
- <DropdownMenuSeparator />
96
  <DropdownMenuItem asChild>
97
  <a
98
  href="https://huggingface.co/login?next=%2Fspaces%2Fhf4all%2Fbingo%3Fduplicate%3Dtrue%26visibility%3Dpublic"
 
80
  </a>
81
  </DropdownMenuItem>
82
  <DropdownMenuSeparator />
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  <DropdownMenuItem asChild>
84
  <a
85
  href="https://huggingface.co/login?next=%2Fspaces%2Fhf4all%2Fbingo%3Fduplicate%3Dtrue%26visibility%3Dpublic"